From df930b1d734cc7feb90f94fc684a2066f4792319 Mon Sep 17 00:00:00 2001 From: Michal Iskierko Date: Tue, 13 Feb 2024 11:23:11 +0100 Subject: [PATCH] feat: New field in TokenCriteria proto AmountInWei will have a wei-like units. Amount field becomes deprecated because it kept string with float value. Comparison (in case of Decimals == 5): Amount (deprecated) = "1.2" AmountInWei = "120000" Issue #11588 --- VERSION | 2 +- protocol/communities/community.go | 33 + protocol/communities/manager.go | 5 +- protocol/communities/manager_test.go | 12 +- protocol/communities/permission_checker.go | 22 +- .../communities/permissioned_balances_test.go | 32 +- protocol/communities_events_utils_test.go | 8 +- .../communities_messenger_helpers_test.go | 4 +- protocol/communities_messenger_test.go | 8 +- ...nities_messenger_token_permissions_test.go | 34 +- protocol/messenger_communities.go | 4 + .../messenger_community_for_mobile_testing.go | 2 +- protocol/protobuf/anon_metrics.pb.go | 320 +- .../application_metadata_message.pb.go | 829 ++-- protocol/protobuf/chat_identity.pb.go | 560 +-- protocol/protobuf/chat_message.pb.go | 4041 +++++++---------- protocol/protobuf/command.pb.go | 773 ++-- protocol/protobuf/communities.pb.go | 3838 ++++++---------- protocol/protobuf/communities.proto | 3 +- protocol/protobuf/community_shard_key.pb.go | 212 +- protocol/protobuf/community_update.pb.go | 1200 ++--- protocol/protobuf/contact.pb.go | 540 +-- protocol/protobuf/contact_verification.pb.go | 477 +- protocol/protobuf/emoji_reaction.pb.go | 316 +- protocol/protobuf/enums.pb.go | 284 +- protocol/protobuf/group_chat_invitation.pb.go | 266 +- .../protobuf/membership_update_message.pb.go | 483 +- protocol/protobuf/pin_message.pb.go | 214 +- protocol/protobuf/profile_showcase.pb.go | 2171 ++++----- protocol/protobuf/push_notifications.pb.go | 1578 +++---- protocol/protobuf/segment_message.pb.go | 203 +- protocol/protobuf/shard.pb.go | 389 +- protocol/protobuf/status_update.pb.go | 267 +- protocol/protobuf/sync_settings.pb.go | 454 +- protocol/protobuf/url_data.pb.go | 559 +-- ...eate_community_token_permission_request.go | 34 +- 36 files changed, 7585 insertions(+), 12592 deletions(-) diff --git a/VERSION b/VERSION index b145359cb..f6714d4c3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.175.5 +0.176.0 diff --git a/protocol/communities/community.go b/protocol/communities/community.go index 4bc1bd5b5..678d36396 100644 --- a/protocol/communities/community.go +++ b/protocol/communities/community.go @@ -6,6 +6,8 @@ import ( "encoding/json" "errors" "fmt" + "math" + "math/big" "sync" "time" @@ -1471,6 +1473,37 @@ func hydrateChannelsMembers(communityID string, description *protobuf.CommunityD } } +func upgradeTokenPermissions(description *protobuf.CommunityDescription) { + + floatToWeiIntFunc := func(floatStr string, decimals uint64) string { + bigfloat := new(big.Float) + bigfloat.SetString(floatStr) + + multiplier := big.NewFloat(math.Pow(10, float64(decimals))) + bigfloat.Mul(bigfloat, multiplier) + + result := new(big.Int) + bigfloat.Int(result) + return result.String() + } + + for _, permission := range description.TokenPermissions { + for _, criteria := range permission.TokenCriteria { + if criteria.AmountInWei != "" { + continue + } + // set AmountInWei if missing + // Amount format (deprecated): "0.123" + // AmountInWei format: "123000..000" + if criteria.Type == protobuf.CommunityTokenType_ERC20 { + criteria.AmountInWei = floatToWeiIntFunc(criteria.Amount, criteria.Decimals) + } else { + criteria.AmountInWei = criteria.Amount + } + } + } +} + func (o *Community) Chats() map[string]*protobuf.CommunityChat { // Why are we checking here for nil, it should be the responsibility of the caller if o == nil { diff --git a/protocol/communities/manager.go b/protocol/communities/manager.go index 556b9e3e3..2de58a7c9 100644 --- a/protocol/communities/manager.go +++ b/protocol/communities/manager.go @@ -1737,6 +1737,8 @@ func (m *Manager) preprocessDescription(id types.HexBytes, description *protobuf return response, err } + upgradeTokenPermissions(description) + // Workaround for https://github.com/status-im/status-desktop/issues/12188 hydrateChannelsMembers(types.EncodeHex(id), description) @@ -4608,7 +4610,8 @@ func (m *Manager) AddCommunityToken(token *community_token.CommunityToken, clock Symbol: token.Symbol, Name: token.Name, Amount: "1", - Decimals: uint64(token.Decimals), + AmountInWei: "1", + Decimals: uint64(0), } request := &requests.CreateCommunityTokenPermission{ diff --git a/protocol/communities/manager_test.go b/protocol/communities/manager_test.go index 8e9d5085e..c003f9fb3 100644 --- a/protocol/communities/manager_test.go +++ b/protocol/communities/manager_test.go @@ -195,7 +195,7 @@ func (s *ManagerSuite) TestRetrieveTokens() { Symbol: "STT", Type: protobuf.CommunityTokenType_ERC20, Name: "Status Test Token", - Amount: "1.000000000000000000", + AmountInWei: "1000000000000000000", Decimals: decimals, }, } @@ -959,7 +959,7 @@ func (s *ManagerSuite) TestCheckChannelPermissions_ViewOnlyPermissions() { Symbol: "STT", Type: protobuf.CommunityTokenType_ERC20, Name: "Status Test Token", - Amount: "1.000000000000000000", + AmountInWei: "1000000000000000000", Decimals: decimals, }, } @@ -1019,7 +1019,7 @@ func (s *ManagerSuite) TestCheckChannelPermissions_ViewAndPostPermissions() { Symbol: "STT", Type: protobuf.CommunityTokenType_ERC20, Name: "Status Test Token", - Amount: "1.000000000000000000", + AmountInWei: "1000000000000000000", Decimals: decimals, }, } @@ -1080,7 +1080,7 @@ func (s *ManagerSuite) TestCheckChannelPermissions_ViewAndPostPermissionsCombina Symbol: "STT", Type: protobuf.CommunityTokenType_ERC20, Name: "Status Test Token", - Amount: "1.000000000000000000", + AmountInWei: "1000000000000000000", Decimals: decimals, }, } @@ -1106,7 +1106,7 @@ func (s *ManagerSuite) TestCheckChannelPermissions_ViewAndPostPermissionsCombina Symbol: "TEST", Type: protobuf.CommunityTokenType_ERC20, Name: "TEST token", - Amount: "1.000000000000000000", + AmountInWei: "1000000000000000000", Decimals: decimals, }, } @@ -1255,7 +1255,7 @@ func (s *ManagerSuite) TestCheckAllChannelsPermissions() { Symbol: "STT", Type: protobuf.CommunityTokenType_ERC20, Name: "Status Test Token", - Amount: "1.000000000000000000", + AmountInWei: "1000000000000000000", Decimals: decimals, }, } diff --git a/protocol/communities/permission_checker.go b/protocol/communities/permission_checker.go index 914a4d960..bd1211c4b 100644 --- a/protocol/communities/permission_checker.go +++ b/protocol/communities/permission_checker.go @@ -3,9 +3,8 @@ package communities import ( "context" "errors" - "math" + "fmt" "math/big" - "strconv" "strings" "go.uber.org/zap" @@ -330,7 +329,7 @@ func (p *DefaultPermissionChecker) CheckPermissions(permissions []*CommunityToke continue } - accumulatedBalance := new(big.Float) + accumulatedBalance := new(big.Int) chainIDLoopERC20: for chainID, address := range tokenRequirement.ContractAddresses { @@ -345,16 +344,11 @@ func (p *DefaultPermissionChecker) CheckPermissions(permissions []*CommunityToke value := ownedERC20TokenBalances[chainID][account][contractAddress] - accountChainBalance := new(big.Float).Quo( - new(big.Float).SetInt(value.ToInt()), - big.NewFloat(math.Pow(10, float64(tokenRequirement.Decimals))), - ) - if _, exists := accountsChainIDsCombinations[account]; !exists { accountsChainIDsCombinations[account] = make(map[uint64]bool) } - if accountChainBalance.Cmp(big.NewFloat(0)) > 0 { + if value.ToInt().Cmp(big.NewInt(0)) > 0 { // account has balance > 0 on this chain for this token, so let's add it the chain IDs accountsChainIDsCombinations[account][chainID] = true } @@ -362,14 +356,14 @@ func (p *DefaultPermissionChecker) CheckPermissions(permissions []*CommunityToke // check if adding current chain account balance to accumulated balance // satisfies required amount prevBalance := accumulatedBalance - accumulatedBalance.Add(prevBalance, accountChainBalance) + accumulatedBalance.Add(prevBalance, value.ToInt()) - requiredAmount, err := strconv.ParseFloat(tokenRequirement.Amount, 32) - if err != nil { - return nil, err + requiredAmount, success := new(big.Int).SetString(tokenRequirement.AmountInWei, 10) + if !success { + return nil, fmt.Errorf("amountInWeis value is incorrect") } - if accumulatedBalance.Cmp(big.NewFloat(requiredAmount)) != -1 { + if accumulatedBalance.Cmp(requiredAmount) != -1 { tokenRequirementMet = true if shortcircuit { break chainIDLoopERC20 diff --git a/protocol/communities/permissioned_balances_test.go b/protocol/communities/permissioned_balances_test.go index 44a1ac12c..4e4b8bbd5 100644 --- a/protocol/communities/permissioned_balances_test.go +++ b/protocol/communities/permissioned_balances_test.go @@ -103,7 +103,7 @@ func (s *ManagerSuite) Test_calculatePermissionedBalances() { Type: protobuf.CommunityTokenType_ERC721, Symbol: "TM_NO_TOKEN_IDS", Name: "TMaster-NoTokenIDs", - Amount: "1", + AmountInWei: "1", ContractAddresses: map[uint64]string{mainnetID: mainnetTMasterNoTokenIDsAddress.Hex()}, }, }, @@ -117,7 +117,7 @@ func (s *ManagerSuite) Test_calculatePermissionedBalances() { Type: protobuf.CommunityTokenType_ERC721, Symbol: "TMTEST", Name: "TMaster-Test", - Amount: "1", + AmountInWei: "1", TokenIds: []uint64{123, 456}, ContractAddresses: map[uint64]string{mainnetID: mainnetTMasterAddress.Hex()}, }, @@ -129,10 +129,10 @@ func (s *ManagerSuite) Test_calculatePermissionedBalances() { Type: protobuf.CommunityTokenPermission_BECOME_TOKEN_OWNER, TokenCriteria: []*protobuf.TokenCriteria{ &protobuf.TokenCriteria{ - Type: protobuf.CommunityTokenType_ERC721, - Symbol: "OWNTEST", - Name: "Owner-Test", - Amount: "5", + Type: protobuf.CommunityTokenType_ERC721, + Symbol: "OWNTEST", + Name: "Owner-Test", + AmountInWei: "5", // No account has a positive balance for these token IDs, so we // expect this collectible to not be present in the final result. TokenIds: []uint64{666}, @@ -146,11 +146,11 @@ func (s *ManagerSuite) Test_calculatePermissionedBalances() { Type: protobuf.CommunityTokenPermission_BECOME_ADMIN, TokenCriteria: []*protobuf.TokenCriteria{ &protobuf.TokenCriteria{ - Type: protobuf.CommunityTokenType_ERC20, - Symbol: "ETH", - Name: "Ethereum", - Amount: "20", - Decimals: 18, + Type: protobuf.CommunityTokenType_ERC20, + Symbol: "ETH", + Name: "Ethereum", + AmountInWei: "20000000000000000000", + Decimals: 18, ContractAddresses: map[uint64]string{ arbitrumID: arbitrumETHContractAddress.Hex(), mainnetID: mainnetETHContractAddress.Hex(), @@ -160,7 +160,7 @@ func (s *ManagerSuite) Test_calculatePermissionedBalances() { Type: protobuf.CommunityTokenType_ERC20, Symbol: "ETH", Name: "Ethereum", - Amount: "4", + AmountInWei: "4000000000000000000", Decimals: 18, ContractAddresses: map[uint64]string{arbitrumID: arbitrumETHContractAddress.Hex()}, }, @@ -175,7 +175,7 @@ func (s *ManagerSuite) Test_calculatePermissionedBalances() { Type: protobuf.CommunityTokenType_ERC20, Symbol: "SNT", Name: "Status", - Amount: "1000", + AmountInWei: "10000000000000000000", Decimals: 16, ContractAddresses: map[uint64]string{mainnetID: mainnetSNTContractAddress.Hex()}, }, @@ -191,7 +191,7 @@ func (s *ManagerSuite) Test_calculatePermissionedBalances() { Type: protobuf.CommunityTokenType_ERC20, Symbol: "DAI", Name: "Dai", - Amount: "7", + AmountInWei: "7000000000000", Decimals: 12, ContractAddresses: map[uint64]string{mainnetID: "0x1234567"}, }, @@ -284,7 +284,7 @@ func (s *ManagerSuite) Test_GetPermissionedBalances() { Type: protobuf.CommunityTokenType_ERC20, Symbol: "ETH", Name: "Ethereum", - Amount: "3", + AmountInWei: "3000000000000000000", Decimals: 18, ContractAddresses: map[uint64]string{chainID: erc20ETHAddress.Hex()}, }, @@ -302,7 +302,7 @@ func (s *ManagerSuite) Test_GetPermissionedBalances() { Type: protobuf.CommunityTokenType_ERC721, Symbol: "TMTEST", Name: "TMaster-Test", - Amount: "1", + AmountInWei: "1", TokenIds: []uint64{666}, ContractAddresses: map[uint64]string{chainID: erc721Address.Hex()}, }, diff --git a/protocol/communities_events_utils_test.go b/protocol/communities_events_utils_test.go index dd7f6cf35..105a520c3 100644 --- a/protocol/communities_events_utils_test.go +++ b/protocol/communities_events_utils_test.go @@ -269,7 +269,7 @@ func createTestPermissionRequest(community *communities.Community, pType protobu Type: protobuf.CommunityTokenType_ERC20, ContractAddresses: map[uint64]string{uint64(communitiesEventsTestChainID): communitiesEventsTestTokenAddress}, Symbol: "TEST", - Amount: "100", + AmountInWei: "100000000000000000000", Decimals: uint64(18), }, }, @@ -338,7 +338,7 @@ func editTokenPermission(base CommunityEventsTestsInterface, community *communit permissionSatisfyRequest := func(p *communities.CommunityTokenPermission) bool { return request.Type == p.Type && request.TokenCriteria[0].Symbol == p.TokenCriteria[0].Symbol && - request.TokenCriteria[0].Amount == p.TokenCriteria[0].Amount && + request.TokenCriteria[0].AmountInWei == p.TokenCriteria[0].AmountInWei && request.TokenCriteria[0].Decimals == p.TokenCriteria[0].Decimals } s.Require().True(permissionSatisfyRequest(editedPermission)) @@ -1004,7 +1004,7 @@ func testCreateEditDeleteBecomeMemberPermission(base CommunityEventsTestsInterfa tokenPermissionID, createTokenPermission := createTestTokenPermission(base, community, pType) createTokenPermission.TokenCriteria[0].Symbol = "UPDATED" - createTokenPermission.TokenCriteria[0].Amount = "200" + createTokenPermission.TokenCriteria[0].AmountInWei = "200000000000000000000" editTokenPermissionRequest := &requests.EditCommunityTokenPermission{ PermissionID: tokenPermissionID, @@ -1823,7 +1823,7 @@ func testEventSenderCannotEditPrivilegedCommunityPermission(base CommunityEvents tokenPermissionID := controlNodeCreatesCommunityPermission(base, community, permissionRequest) permissionRequest.TokenCriteria[0].Symbol = "UPDATED" - permissionRequest.TokenCriteria[0].Amount = "200" + permissionRequest.TokenCriteria[0].AmountInWei = "200000000000000000000" permissionEditRequest := &requests.EditCommunityTokenPermission{ PermissionID: tokenPermissionID, diff --git a/protocol/communities_messenger_helpers_test.go b/protocol/communities_messenger_helpers_test.go index f1821eca7..65751f18c 100644 --- a/protocol/communities_messenger_helpers_test.go +++ b/protocol/communities_messenger_helpers_test.go @@ -273,7 +273,7 @@ func createEncryptedCommunity(s *suite.Suite, owner *Messenger) (*communities.Co Type: protobuf.CommunityTokenType_ERC20, Symbol: "STT", Name: "Status Test Token", - Amount: "10", + AmountInWei: "10000000000000000000", Decimals: 18, }}, }) @@ -289,7 +289,7 @@ func createEncryptedCommunity(s *suite.Suite, owner *Messenger) (*communities.Co Type: protobuf.CommunityTokenType_ERC20, Symbol: "STT", Name: "Status Test Token", - Amount: "10", + AmountInWei: "10000000000000000000", Decimals: 18, }, }, diff --git a/protocol/communities_messenger_test.go b/protocol/communities_messenger_test.go index dfaf158c6..c238ac039 100644 --- a/protocol/communities_messenger_test.go +++ b/protocol/communities_messenger_test.go @@ -2677,7 +2677,7 @@ func (s *MessengerCommunitiesSuite) TestSyncCommunity_EncryptionKeys() { Type: protobuf.CommunityTokenType_ERC20, ContractAddresses: map[uint64]string{testChainID1: "0x123"}, Symbol: "TEST", - Amount: "100", + AmountInWei: "100000000000000000000", Decimals: uint64(18), }, }, @@ -2693,7 +2693,7 @@ func (s *MessengerCommunitiesSuite) TestSyncCommunity_EncryptionKeys() { Type: protobuf.CommunityTokenType_ERC20, ContractAddresses: map[uint64]string{testChainID1: "0x123"}, Symbol: "TEST", - Amount: "100", + AmountInWei: "100000000000000000000", Decimals: uint64(18), }, }, @@ -3616,7 +3616,7 @@ func (s *MessengerCommunitiesSuite) TestCommunityRekeyAfterBan() { Type: protobuf.CommunityTokenType_ERC20, Symbol: "STT", Name: "Status Test Token", - Amount: "10", + AmountInWei: "10000000000000000000", Decimals: 18, }}, }) @@ -3719,7 +3719,7 @@ func (s *MessengerCommunitiesSuite) TestCommunityRekeyAfterBanDisableCompatibili Type: protobuf.CommunityTokenType_ERC20, Symbol: "STT", Name: "Status Test Token", - Amount: "10", + AmountInWei: "10000000000000000000", Decimals: 18, }}, }) diff --git a/protocol/communities_messenger_token_permissions_test.go b/protocol/communities_messenger_token_permissions_test.go index 24abe0fe2..747208e2f 100644 --- a/protocol/communities_messenger_token_permissions_test.go +++ b/protocol/communities_messenger_token_permissions_test.go @@ -225,10 +225,8 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) sendChatMessage(sender *Mess func (s *MessengerCommunitiesTokenPermissionsSuite) makeAddressSatisfyTheCriteria(chainID uint64, address string, criteria *protobuf.TokenCriteria) { walletAddress := gethcommon.HexToAddress(address) contractAddress := gethcommon.HexToAddress(criteria.ContractAddresses[chainID]) - balance, ok := new(big.Int).SetString(criteria.Amount, 10) + balance, ok := new(big.Int).SetString(criteria.AmountInWei, 10) s.Require().True(ok) - decimalsFactor := new(big.Int).Exp(big.NewInt(10), big.NewInt(int64(criteria.Decimals)), nil) - balance.Mul(balance, decimalsFactor) s.mockedBalances[chainID][walletAddress][contractAddress] = (*hexutil.Big)(balance) } @@ -251,7 +249,7 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) TestCreateTokenPermission() Type: protobuf.CommunityTokenType_ERC20, ContractAddresses: map[uint64]string{uint64(testChainID1): "0x123"}, Symbol: "TEST", - Amount: "100", + AmountInWei: "100000000000000000000", Decimals: uint64(18), }, }, @@ -267,7 +265,8 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) TestCreateTokenPermission() for _, tc := range tokenPermission.TokenCriteria { s.Require().Equal(tc.Type, protobuf.CommunityTokenType_ERC20) s.Require().Equal(tc.Symbol, "TEST") - s.Require().Equal(tc.Amount, "100") + s.Require().Equal(tc.AmountInWei, "100000000000000000000") + s.Require().Equal(tc.Amount, "100") // automatically upgraded deprecated amount s.Require().Equal(tc.Decimals, uint64(18)) } } @@ -285,7 +284,7 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) TestEditTokenPermission() { Type: protobuf.CommunityTokenType_ERC20, ContractAddresses: map[uint64]string{testChainID1: "0x123"}, Symbol: "TEST", - Amount: "100", + AmountInWei: "100000000000000000000", Decimals: uint64(18), }, }, @@ -304,7 +303,7 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) TestEditTokenPermission() { } tokenPermission.TokenCriteria[0].Symbol = "TESTUpdated" - tokenPermission.TokenCriteria[0].Amount = "200" + tokenPermission.TokenCriteria[0].AmountInWei = "200000000000000000000" tokenPermission.TokenCriteria[0].Decimals = uint64(20) editTokenPermission := &requests.EditCommunityTokenPermission{ @@ -324,7 +323,8 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) TestEditTokenPermission() { for _, tc := range tokenPermission.TokenCriteria { s.Require().Equal(tc.Type, protobuf.CommunityTokenType_ERC20) s.Require().Equal(tc.Symbol, "TESTUpdated") - s.Require().Equal(tc.Amount, "200") + s.Require().Equal(tc.AmountInWei, "200000000000000000000") + s.Require().Equal(tc.Amount, "2") // automatically upgraded deprecated amount s.Require().Equal(tc.Decimals, uint64(20)) } } @@ -835,7 +835,7 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) TestJoinCommunityWithAdminPe Type: protobuf.CommunityTokenType_ERC20, ContractAddresses: map[uint64]string{testChainID1: "0x123"}, Symbol: "TEST", - Amount: "100", + AmountInWei: "100000000000000000000", Decimals: uint64(18), }, }, @@ -873,7 +873,7 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) TestJoinCommunityAsMemberWit Type: protobuf.CommunityTokenType_ERC20, ContractAddresses: map[uint64]string{testChainID1: "0x123"}, Symbol: "TEST", - Amount: "100", + AmountInWei: "100000000000000000000", Decimals: uint64(18), }, }, @@ -894,7 +894,7 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) TestJoinCommunityAsMemberWit Type: protobuf.CommunityTokenType_ERC20, ContractAddresses: map[uint64]string{testChainID1: "0x124"}, Symbol: "TESTADMIN", - Amount: "100", + AmountInWei: "100000000000000000000", Decimals: uint64(18), }, }, @@ -939,7 +939,7 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) TestJoinCommunityAsAdminWith Type: protobuf.CommunityTokenType_ERC20, ContractAddresses: map[uint64]string{testChainID1: "0x123"}, Symbol: "TEST", - Amount: "100", + AmountInWei: "100000000000000000000", Decimals: uint64(18), }, }, @@ -964,7 +964,7 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) TestJoinCommunityAsAdminWith Type: protobuf.CommunityTokenType_ERC20, ContractAddresses: map[uint64]string{testChainID1: "0x124"}, Symbol: "TESTADMIN", - Amount: "100", + AmountInWei: "100000000000000000000", Decimals: uint64(18), }, }, @@ -1038,7 +1038,7 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) TestViewChannelPermissions() Type: protobuf.CommunityTokenType_ERC20, ContractAddresses: map[uint64]string{testChainID1: "0x123"}, Symbol: "TEST", - Amount: "100", + AmountInWei: "100000000000000000000", Decimals: uint64(18), }, }, @@ -1154,7 +1154,7 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) testReevaluateMemberPrivileg Type: protobuf.CommunityTokenType_ERC20, ContractAddresses: map[uint64]string{testChainID1: "0x123"}, Symbol: "TEST", - Amount: "100", + AmountInWei: "100000000000000000000", Decimals: uint64(18), }, }, @@ -1244,7 +1244,7 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) testReevaluateMemberPrivileg Type: protobuf.CommunityTokenType_ERC20, ContractAddresses: map[uint64]string{testChainID1: "0x123"}, Symbol: "TEST", - Amount: "100", + AmountInWei: "100000000000000000000", Decimals: uint64(18), }, }, @@ -1264,7 +1264,7 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) testReevaluateMemberPrivileg Type: protobuf.CommunityTokenType_ERC20, ContractAddresses: map[uint64]string{testChainID1: "0x124"}, Symbol: "TEST2", - Amount: "100", + AmountInWei: "100000000000000000000", Decimals: uint64(18), }, }, diff --git a/protocol/messenger_communities.go b/protocol/messenger_communities.go index 845c85e38..decbcb509 100644 --- a/protocol/messenger_communities.go +++ b/protocol/messenger_communities.go @@ -2268,6 +2268,8 @@ func (m *Messenger) UpdateCommunityFilters(community *communities.Community) err } func (m *Messenger) CreateCommunityTokenPermission(request *requests.CreateCommunityTokenPermission) (*MessengerResponse, error) { + request.FillDeprecatedAmount() + if err := request.Validate(); err != nil { return nil, err } @@ -2302,6 +2304,8 @@ func (m *Messenger) CreateCommunityTokenPermission(request *requests.CreateCommu } func (m *Messenger) EditCommunityTokenPermission(request *requests.EditCommunityTokenPermission) (*MessengerResponse, error) { + request.FillDeprecatedAmount() + if err := request.Validate(); err != nil { return nil, err } diff --git a/protocol/messenger_community_for_mobile_testing.go b/protocol/messenger_community_for_mobile_testing.go index 3598ab4c4..76717505e 100644 --- a/protocol/messenger_community_for_mobile_testing.go +++ b/protocol/messenger_community_for_mobile_testing.go @@ -126,7 +126,7 @@ func (m *Messenger) CreateTokenGatedCommunity() (*MessengerResponse, error) { Type: protobuf.CommunityTokenType_ERC20, Symbol: "STT", Name: "Status Test Token", - Amount: "10", + AmountInWei: "10000000000000000000", Decimals: 18, }}, ChatIds: []string{generalChatID}, diff --git a/protocol/protobuf/anon_metrics.pb.go b/protocol/protobuf/anon_metrics.pb.go index 1fd708d64..799226b2f 100644 --- a/protocol/protobuf/anon_metrics.pb.go +++ b/protocol/protobuf/anon_metrics.pb.go @@ -1,32 +1,28 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: anon_metrics.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" + fmt "fmt" + proto "github.com/golang/protobuf/proto" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // AnonymousMetric represents a single metric data point type AnonymousMetric struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // id is the unique id of the metric message Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // event is the app metric event type @@ -40,243 +36,153 @@ type AnonymousMetric struct { // session_id is the id of the session the metric was recorded in SessionId string `protobuf:"bytes,6,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // created_at is the datetime at which the metric was stored in the local db - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AnonymousMetric) Reset() { - *x = AnonymousMetric{} - if protoimpl.UnsafeEnabled { - mi := &file_anon_metrics_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AnonymousMetric) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AnonymousMetric) ProtoMessage() {} - -func (x *AnonymousMetric) ProtoReflect() protoreflect.Message { - mi := &file_anon_metrics_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AnonymousMetric.ProtoReflect.Descriptor instead. +func (m *AnonymousMetric) Reset() { *m = AnonymousMetric{} } +func (m *AnonymousMetric) String() string { return proto.CompactTextString(m) } +func (*AnonymousMetric) ProtoMessage() {} func (*AnonymousMetric) Descriptor() ([]byte, []int) { - return file_anon_metrics_proto_rawDescGZIP(), []int{0} + return fileDescriptor_4be044a92fa0408c, []int{0} } -func (x *AnonymousMetric) GetId() string { - if x != nil { - return x.Id +func (m *AnonymousMetric) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AnonymousMetric.Unmarshal(m, b) +} +func (m *AnonymousMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AnonymousMetric.Marshal(b, m, deterministic) +} +func (m *AnonymousMetric) XXX_Merge(src proto.Message) { + xxx_messageInfo_AnonymousMetric.Merge(m, src) +} +func (m *AnonymousMetric) XXX_Size() int { + return xxx_messageInfo_AnonymousMetric.Size(m) +} +func (m *AnonymousMetric) XXX_DiscardUnknown() { + xxx_messageInfo_AnonymousMetric.DiscardUnknown(m) +} + +var xxx_messageInfo_AnonymousMetric proto.InternalMessageInfo + +func (m *AnonymousMetric) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *AnonymousMetric) GetEvent() string { - if x != nil { - return x.Event +func (m *AnonymousMetric) GetEvent() string { + if m != nil { + return m.Event } return "" } -func (x *AnonymousMetric) GetValue() []byte { - if x != nil { - return x.Value +func (m *AnonymousMetric) GetValue() []byte { + if m != nil { + return m.Value } return nil } -func (x *AnonymousMetric) GetAppVersion() string { - if x != nil { - return x.AppVersion +func (m *AnonymousMetric) GetAppVersion() string { + if m != nil { + return m.AppVersion } return "" } -func (x *AnonymousMetric) GetOs() string { - if x != nil { - return x.Os +func (m *AnonymousMetric) GetOs() string { + if m != nil { + return m.Os } return "" } -func (x *AnonymousMetric) GetSessionId() string { - if x != nil { - return x.SessionId +func (m *AnonymousMetric) GetSessionId() string { + if m != nil { + return m.SessionId } return "" } -func (x *AnonymousMetric) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt +func (m *AnonymousMetric) GetCreatedAt() *timestamppb.Timestamp { + if m != nil { + return m.CreatedAt } return nil } // AnonymousMetricBatch represents a batch of AnonymousMetrics allowing broadcast of AnonymousMetrics with fewer messages type AnonymousMetricBatch struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // metrics is an array of AnonymousMetric metrics - Metrics []*AnonymousMetric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"` + Metrics []*AnonymousMetric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AnonymousMetricBatch) Reset() { - *x = AnonymousMetricBatch{} - if protoimpl.UnsafeEnabled { - mi := &file_anon_metrics_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AnonymousMetricBatch) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AnonymousMetricBatch) ProtoMessage() {} - -func (x *AnonymousMetricBatch) ProtoReflect() protoreflect.Message { - mi := &file_anon_metrics_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AnonymousMetricBatch.ProtoReflect.Descriptor instead. +func (m *AnonymousMetricBatch) Reset() { *m = AnonymousMetricBatch{} } +func (m *AnonymousMetricBatch) String() string { return proto.CompactTextString(m) } +func (*AnonymousMetricBatch) ProtoMessage() {} func (*AnonymousMetricBatch) Descriptor() ([]byte, []int) { - return file_anon_metrics_proto_rawDescGZIP(), []int{1} + return fileDescriptor_4be044a92fa0408c, []int{1} } -func (x *AnonymousMetricBatch) GetMetrics() []*AnonymousMetric { - if x != nil { - return x.Metrics +func (m *AnonymousMetricBatch) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AnonymousMetricBatch.Unmarshal(m, b) +} +func (m *AnonymousMetricBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AnonymousMetricBatch.Marshal(b, m, deterministic) +} +func (m *AnonymousMetricBatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_AnonymousMetricBatch.Merge(m, src) +} +func (m *AnonymousMetricBatch) XXX_Size() int { + return xxx_messageInfo_AnonymousMetricBatch.Size(m) +} +func (m *AnonymousMetricBatch) XXX_DiscardUnknown() { + xxx_messageInfo_AnonymousMetricBatch.DiscardUnknown(m) +} + +var xxx_messageInfo_AnonymousMetricBatch proto.InternalMessageInfo + +func (m *AnonymousMetricBatch) GetMetrics() []*AnonymousMetric { + if m != nil { + return m.Metrics } return nil } -var File_anon_metrics_proto protoreflect.FileDescriptor - -var file_anon_metrics_proto_rawDesc = []byte{ - 0x0a, 0x12, 0x61, 0x6e, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x1f, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0xd8, 0x01, 0x0a, 0x0f, 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x4d, 0x65, 0x74, - 0x72, 0x69, 0x63, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, - 0x1f, 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x6f, 0x73, - 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, - 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x4b, 0x0a, 0x14, 0x41, 0x6e, - 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x42, 0x61, 0x74, - 0x63, 0x68, 0x12, 0x33, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, - 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x07, - 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterType((*AnonymousMetric)(nil), "protobuf.AnonymousMetric") + proto.RegisterType((*AnonymousMetricBatch)(nil), "protobuf.AnonymousMetricBatch") } -var ( - file_anon_metrics_proto_rawDescOnce sync.Once - file_anon_metrics_proto_rawDescData = file_anon_metrics_proto_rawDesc -) - -func file_anon_metrics_proto_rawDescGZIP() []byte { - file_anon_metrics_proto_rawDescOnce.Do(func() { - file_anon_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_anon_metrics_proto_rawDescData) - }) - return file_anon_metrics_proto_rawDescData +func init() { + proto.RegisterFile("anon_metrics.proto", fileDescriptor_4be044a92fa0408c) } -var file_anon_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_anon_metrics_proto_goTypes = []interface{}{ - (*AnonymousMetric)(nil), // 0: protobuf.AnonymousMetric - (*AnonymousMetricBatch)(nil), // 1: protobuf.AnonymousMetricBatch - (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp -} -var file_anon_metrics_proto_depIdxs = []int32{ - 2, // 0: protobuf.AnonymousMetric.created_at:type_name -> google.protobuf.Timestamp - 0, // 1: protobuf.AnonymousMetricBatch.metrics:type_name -> protobuf.AnonymousMetric - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_anon_metrics_proto_init() } -func file_anon_metrics_proto_init() { - if File_anon_metrics_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_anon_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AnonymousMetric); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_anon_metrics_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AnonymousMetricBatch); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_anon_metrics_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_anon_metrics_proto_goTypes, - DependencyIndexes: file_anon_metrics_proto_depIdxs, - MessageInfos: file_anon_metrics_proto_msgTypes, - }.Build() - File_anon_metrics_proto = out.File - file_anon_metrics_proto_rawDesc = nil - file_anon_metrics_proto_goTypes = nil - file_anon_metrics_proto_depIdxs = nil +var fileDescriptor_4be044a92fa0408c = []byte{ + // 269 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0x3d, 0x6b, 0xc3, 0x30, + 0x10, 0x86, 0x51, 0xd2, 0x24, 0xf5, 0xb9, 0x1f, 0x20, 0x32, 0xa8, 0x81, 0x12, 0x93, 0xc9, 0x93, + 0x0d, 0xc9, 0x54, 0x3a, 0x25, 0x5b, 0x29, 0x5d, 0x4c, 0xe9, 0xd0, 0xc5, 0x28, 0xb6, 0x9a, 0x0a, + 0x62, 0x9d, 0xb0, 0x64, 0x43, 0xff, 0x69, 0x7f, 0x4e, 0xb1, 0x64, 0x51, 0xc8, 0x24, 0xdd, 0xa3, + 0xf7, 0x5e, 0x78, 0x04, 0x94, 0x2b, 0x54, 0x65, 0x23, 0x6c, 0x2b, 0x2b, 0x93, 0xe9, 0x16, 0x2d, + 0xd2, 0x6b, 0x77, 0x1c, 0xbb, 0xaf, 0xd5, 0xfa, 0x84, 0x78, 0x3a, 0x8b, 0x3c, 0x80, 0xdc, 0xca, + 0x46, 0x18, 0xcb, 0x1b, 0xed, 0xa3, 0x9b, 0x5f, 0x02, 0xf7, 0x7b, 0x85, 0xea, 0xa7, 0xc1, 0xce, + 0xbc, 0xb9, 0x16, 0x7a, 0x07, 0x13, 0x59, 0x33, 0x92, 0x90, 0x34, 0x2a, 0x26, 0xb2, 0xa6, 0x4b, + 0x98, 0x89, 0x5e, 0x28, 0xcb, 0x26, 0x0e, 0xf9, 0x61, 0xa0, 0x3d, 0x3f, 0x77, 0x82, 0x4d, 0x13, + 0x92, 0xde, 0x14, 0x7e, 0xa0, 0x6b, 0x88, 0xb9, 0xd6, 0x65, 0x2f, 0x5a, 0x23, 0x51, 0xb1, 0x2b, + 0xb7, 0x01, 0x5c, 0xeb, 0x0f, 0x4f, 0x86, 0x72, 0x34, 0x6c, 0xe6, 0xcb, 0xd1, 0xd0, 0x47, 0x00, + 0x23, 0xcc, 0xf0, 0x54, 0xca, 0x9a, 0xcd, 0x1d, 0x8f, 0x46, 0xf2, 0x52, 0xd3, 0x27, 0x80, 0xaa, + 0x15, 0xdc, 0x8a, 0xba, 0xe4, 0x96, 0x2d, 0x12, 0x92, 0xc6, 0xdb, 0x55, 0xe6, 0xad, 0xb2, 0x60, + 0x95, 0xbd, 0x07, 0xab, 0x22, 0x1a, 0xd3, 0x7b, 0xbb, 0x79, 0x85, 0xe5, 0x85, 0xd9, 0x81, 0xdb, + 0xea, 0x9b, 0xee, 0x60, 0x31, 0x7e, 0x17, 0x23, 0xc9, 0x34, 0x8d, 0xb7, 0x0f, 0xff, 0x45, 0x17, + 0x0b, 0x45, 0x48, 0x1e, 0x6e, 0x3f, 0xe3, 0x2c, 0x7f, 0x0e, 0xb9, 0xe3, 0xdc, 0xdd, 0x76, 0x7f, + 0x01, 0x00, 0x00, 0xff, 0xff, 0xc7, 0x86, 0xa1, 0x32, 0x7e, 0x01, 0x00, 0x00, } diff --git a/protocol/protobuf/application_metadata_message.pb.go b/protocol/protobuf/application_metadata_message.pb.go index 5608fd7c6..cc50c830e 100644 --- a/protocol/protobuf/application_metadata_message.pb.go +++ b/protocol/protobuf/application_metadata_message.pb.go @@ -1,56 +1,54 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: application_metadata_message.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type ApplicationMetadataMessage_Type int32 const ( - ApplicationMetadataMessage_UNKNOWN ApplicationMetadataMessage_Type = 0 - ApplicationMetadataMessage_CHAT_MESSAGE ApplicationMetadataMessage_Type = 1 - ApplicationMetadataMessage_CONTACT_UPDATE ApplicationMetadataMessage_Type = 2 - ApplicationMetadataMessage_MEMBERSHIP_UPDATE_MESSAGE ApplicationMetadataMessage_Type = 3 - ApplicationMetadataMessage_SYNC_PAIR_INSTALLATION ApplicationMetadataMessage_Type = 4 - // Deprecated: Marked as deprecated in application_metadata_message.proto. - ApplicationMetadataMessage_DEPRECATED_SYNC_INSTALLATION ApplicationMetadataMessage_Type = 5 - ApplicationMetadataMessage_REQUEST_ADDRESS_FOR_TRANSACTION ApplicationMetadataMessage_Type = 6 - ApplicationMetadataMessage_ACCEPT_REQUEST_ADDRESS_FOR_TRANSACTION ApplicationMetadataMessage_Type = 7 - ApplicationMetadataMessage_DECLINE_REQUEST_ADDRESS_FOR_TRANSACTION ApplicationMetadataMessage_Type = 8 - ApplicationMetadataMessage_REQUEST_TRANSACTION ApplicationMetadataMessage_Type = 9 - ApplicationMetadataMessage_SEND_TRANSACTION ApplicationMetadataMessage_Type = 10 - ApplicationMetadataMessage_DECLINE_REQUEST_TRANSACTION ApplicationMetadataMessage_Type = 11 - ApplicationMetadataMessage_SYNC_INSTALLATION_CONTACT_V2 ApplicationMetadataMessage_Type = 12 - ApplicationMetadataMessage_SYNC_INSTALLATION_ACCOUNT ApplicationMetadataMessage_Type = 13 - ApplicationMetadataMessage_CONTACT_CODE_ADVERTISEMENT ApplicationMetadataMessage_Type = 15 - ApplicationMetadataMessage_PUSH_NOTIFICATION_REGISTRATION ApplicationMetadataMessage_Type = 16 - ApplicationMetadataMessage_PUSH_NOTIFICATION_REGISTRATION_RESPONSE ApplicationMetadataMessage_Type = 17 - ApplicationMetadataMessage_PUSH_NOTIFICATION_QUERY ApplicationMetadataMessage_Type = 18 - ApplicationMetadataMessage_PUSH_NOTIFICATION_QUERY_RESPONSE ApplicationMetadataMessage_Type = 19 - ApplicationMetadataMessage_PUSH_NOTIFICATION_REQUEST ApplicationMetadataMessage_Type = 20 - ApplicationMetadataMessage_PUSH_NOTIFICATION_RESPONSE ApplicationMetadataMessage_Type = 21 - ApplicationMetadataMessage_EMOJI_REACTION ApplicationMetadataMessage_Type = 22 - ApplicationMetadataMessage_GROUP_CHAT_INVITATION ApplicationMetadataMessage_Type = 23 - ApplicationMetadataMessage_CHAT_IDENTITY ApplicationMetadataMessage_Type = 24 - ApplicationMetadataMessage_COMMUNITY_DESCRIPTION ApplicationMetadataMessage_Type = 25 - // Deprecated: Marked as deprecated in application_metadata_message.proto. - ApplicationMetadataMessage_COMMUNITY_INVITATION ApplicationMetadataMessage_Type = 26 + ApplicationMetadataMessage_UNKNOWN ApplicationMetadataMessage_Type = 0 + ApplicationMetadataMessage_CHAT_MESSAGE ApplicationMetadataMessage_Type = 1 + ApplicationMetadataMessage_CONTACT_UPDATE ApplicationMetadataMessage_Type = 2 + ApplicationMetadataMessage_MEMBERSHIP_UPDATE_MESSAGE ApplicationMetadataMessage_Type = 3 + ApplicationMetadataMessage_SYNC_PAIR_INSTALLATION ApplicationMetadataMessage_Type = 4 + ApplicationMetadataMessage_DEPRECATED_SYNC_INSTALLATION ApplicationMetadataMessage_Type = 5 // Deprecated: Do not use. + ApplicationMetadataMessage_REQUEST_ADDRESS_FOR_TRANSACTION ApplicationMetadataMessage_Type = 6 + ApplicationMetadataMessage_ACCEPT_REQUEST_ADDRESS_FOR_TRANSACTION ApplicationMetadataMessage_Type = 7 + ApplicationMetadataMessage_DECLINE_REQUEST_ADDRESS_FOR_TRANSACTION ApplicationMetadataMessage_Type = 8 + ApplicationMetadataMessage_REQUEST_TRANSACTION ApplicationMetadataMessage_Type = 9 + ApplicationMetadataMessage_SEND_TRANSACTION ApplicationMetadataMessage_Type = 10 + ApplicationMetadataMessage_DECLINE_REQUEST_TRANSACTION ApplicationMetadataMessage_Type = 11 + ApplicationMetadataMessage_SYNC_INSTALLATION_CONTACT_V2 ApplicationMetadataMessage_Type = 12 + ApplicationMetadataMessage_SYNC_INSTALLATION_ACCOUNT ApplicationMetadataMessage_Type = 13 + ApplicationMetadataMessage_CONTACT_CODE_ADVERTISEMENT ApplicationMetadataMessage_Type = 15 + ApplicationMetadataMessage_PUSH_NOTIFICATION_REGISTRATION ApplicationMetadataMessage_Type = 16 + ApplicationMetadataMessage_PUSH_NOTIFICATION_REGISTRATION_RESPONSE ApplicationMetadataMessage_Type = 17 + ApplicationMetadataMessage_PUSH_NOTIFICATION_QUERY ApplicationMetadataMessage_Type = 18 + ApplicationMetadataMessage_PUSH_NOTIFICATION_QUERY_RESPONSE ApplicationMetadataMessage_Type = 19 + ApplicationMetadataMessage_PUSH_NOTIFICATION_REQUEST ApplicationMetadataMessage_Type = 20 + ApplicationMetadataMessage_PUSH_NOTIFICATION_RESPONSE ApplicationMetadataMessage_Type = 21 + ApplicationMetadataMessage_EMOJI_REACTION ApplicationMetadataMessage_Type = 22 + ApplicationMetadataMessage_GROUP_CHAT_INVITATION ApplicationMetadataMessage_Type = 23 + ApplicationMetadataMessage_CHAT_IDENTITY ApplicationMetadataMessage_Type = 24 + ApplicationMetadataMessage_COMMUNITY_DESCRIPTION ApplicationMetadataMessage_Type = 25 + ApplicationMetadataMessage_COMMUNITY_INVITATION ApplicationMetadataMessage_Type = 26 // Deprecated: Do not use. ApplicationMetadataMessage_COMMUNITY_REQUEST_TO_JOIN ApplicationMetadataMessage_Type = 27 ApplicationMetadataMessage_PIN_MESSAGE ApplicationMetadataMessage_Type = 28 ApplicationMetadataMessage_EDIT_MESSAGE ApplicationMetadataMessage_Type = 29 @@ -107,507 +105,322 @@ const ( ApplicationMetadataMessage_COMMUNITY_PUBLIC_STORENODES_INFO ApplicationMetadataMessage_Type = 83 ) -// Enum value maps for ApplicationMetadataMessage_Type. -var ( - ApplicationMetadataMessage_Type_name = map[int32]string{ - 0: "UNKNOWN", - 1: "CHAT_MESSAGE", - 2: "CONTACT_UPDATE", - 3: "MEMBERSHIP_UPDATE_MESSAGE", - 4: "SYNC_PAIR_INSTALLATION", - 5: "DEPRECATED_SYNC_INSTALLATION", - 6: "REQUEST_ADDRESS_FOR_TRANSACTION", - 7: "ACCEPT_REQUEST_ADDRESS_FOR_TRANSACTION", - 8: "DECLINE_REQUEST_ADDRESS_FOR_TRANSACTION", - 9: "REQUEST_TRANSACTION", - 10: "SEND_TRANSACTION", - 11: "DECLINE_REQUEST_TRANSACTION", - 12: "SYNC_INSTALLATION_CONTACT_V2", - 13: "SYNC_INSTALLATION_ACCOUNT", - 15: "CONTACT_CODE_ADVERTISEMENT", - 16: "PUSH_NOTIFICATION_REGISTRATION", - 17: "PUSH_NOTIFICATION_REGISTRATION_RESPONSE", - 18: "PUSH_NOTIFICATION_QUERY", - 19: "PUSH_NOTIFICATION_QUERY_RESPONSE", - 20: "PUSH_NOTIFICATION_REQUEST", - 21: "PUSH_NOTIFICATION_RESPONSE", - 22: "EMOJI_REACTION", - 23: "GROUP_CHAT_INVITATION", - 24: "CHAT_IDENTITY", - 25: "COMMUNITY_DESCRIPTION", - 26: "COMMUNITY_INVITATION", - 27: "COMMUNITY_REQUEST_TO_JOIN", - 28: "PIN_MESSAGE", - 29: "EDIT_MESSAGE", - 30: "STATUS_UPDATE", - 31: "DELETE_MESSAGE", - 32: "SYNC_INSTALLATION_COMMUNITY", - 33: "ANONYMOUS_METRIC_BATCH", - 34: "SYNC_CHAT_REMOVED", - 35: "SYNC_CHAT_MESSAGES_READ", - 36: "BACKUP", - 37: "SYNC_ACTIVITY_CENTER_READ", - 38: "SYNC_ACTIVITY_CENTER_ACCEPTED", - 39: "SYNC_ACTIVITY_CENTER_DISMISSED", - 40: "SYNC_BOOKMARK", - 41: "SYNC_CLEAR_HISTORY", - 42: "SYNC_SETTING", - 43: "COMMUNITY_MESSAGE_ARCHIVE_MAGNETLINK", - 44: "SYNC_PROFILE_PICTURES", - 45: "SYNC_ACCOUNT", - 46: "ACCEPT_CONTACT_REQUEST", - 47: "RETRACT_CONTACT_REQUEST", - 48: "COMMUNITY_REQUEST_TO_JOIN_RESPONSE", - 49: "SYNC_COMMUNITY_SETTINGS", - 50: "REQUEST_CONTACT_VERIFICATION", - 51: "ACCEPT_CONTACT_VERIFICATION", - 52: "DECLINE_CONTACT_VERIFICATION", - 53: "SYNC_TRUSTED_USER", - 54: "SYNC_VERIFICATION_REQUEST", - 56: "SYNC_CONTACT_REQUEST_DECISION", - 57: "COMMUNITY_REQUEST_TO_LEAVE", - 58: "SYNC_DELETE_FOR_ME_MESSAGE", - 59: "SYNC_SAVED_ADDRESS", - 60: "COMMUNITY_CANCEL_REQUEST_TO_JOIN", - 61: "CANCEL_CONTACT_VERIFICATION", - 62: "SYNC_KEYPAIR", - 63: "SYNC_SOCIAL_LINKS", - 64: "SYNC_ENS_USERNAME_DETAIL", - 67: "COMMUNITY_EVENTS_MESSAGE", - 68: "COMMUNITY_EDIT_SHARED_ADDRESSES", - 69: "SYNC_ACCOUNT_CUSTOMIZATION_COLOR", - 70: "SYNC_ACCOUNTS_POSITIONS", - 71: "COMMUNITY_EVENTS_MESSAGE_REJECTED", - 72: "COMMUNITY_PRIVILEGED_USER_SYNC_MESSAGE", - 73: "COMMUNITY_SHARD_KEY", - 74: "SYNC_CHAT", - 75: "SYNC_ACTIVITY_CENTER_DELETED", - 76: "SYNC_ACTIVITY_CENTER_UNREAD", - 77: "SYNC_ACTIVITY_CENTER_COMMUNITY_REQUEST_DECISION", - 78: "SYNC_TOKEN_PREFERENCES", - 79: "COMMUNITY_PUBLIC_SHARD_INFO", - 80: "SYNC_COLLECTIBLE_PREFERENCES", - 81: "COMMUNITY_USER_KICKED", - 82: "SYNC_PROFILE_SHOWCASE_PREFERENCES", - 83: "COMMUNITY_PUBLIC_STORENODES_INFO", - } - ApplicationMetadataMessage_Type_value = map[string]int32{ - "UNKNOWN": 0, - "CHAT_MESSAGE": 1, - "CONTACT_UPDATE": 2, - "MEMBERSHIP_UPDATE_MESSAGE": 3, - "SYNC_PAIR_INSTALLATION": 4, - "DEPRECATED_SYNC_INSTALLATION": 5, - "REQUEST_ADDRESS_FOR_TRANSACTION": 6, - "ACCEPT_REQUEST_ADDRESS_FOR_TRANSACTION": 7, - "DECLINE_REQUEST_ADDRESS_FOR_TRANSACTION": 8, - "REQUEST_TRANSACTION": 9, - "SEND_TRANSACTION": 10, - "DECLINE_REQUEST_TRANSACTION": 11, - "SYNC_INSTALLATION_CONTACT_V2": 12, - "SYNC_INSTALLATION_ACCOUNT": 13, - "CONTACT_CODE_ADVERTISEMENT": 15, - "PUSH_NOTIFICATION_REGISTRATION": 16, - "PUSH_NOTIFICATION_REGISTRATION_RESPONSE": 17, - "PUSH_NOTIFICATION_QUERY": 18, - "PUSH_NOTIFICATION_QUERY_RESPONSE": 19, - "PUSH_NOTIFICATION_REQUEST": 20, - "PUSH_NOTIFICATION_RESPONSE": 21, - "EMOJI_REACTION": 22, - "GROUP_CHAT_INVITATION": 23, - "CHAT_IDENTITY": 24, - "COMMUNITY_DESCRIPTION": 25, - "COMMUNITY_INVITATION": 26, - "COMMUNITY_REQUEST_TO_JOIN": 27, - "PIN_MESSAGE": 28, - "EDIT_MESSAGE": 29, - "STATUS_UPDATE": 30, - "DELETE_MESSAGE": 31, - "SYNC_INSTALLATION_COMMUNITY": 32, - "ANONYMOUS_METRIC_BATCH": 33, - "SYNC_CHAT_REMOVED": 34, - "SYNC_CHAT_MESSAGES_READ": 35, - "BACKUP": 36, - "SYNC_ACTIVITY_CENTER_READ": 37, - "SYNC_ACTIVITY_CENTER_ACCEPTED": 38, - "SYNC_ACTIVITY_CENTER_DISMISSED": 39, - "SYNC_BOOKMARK": 40, - "SYNC_CLEAR_HISTORY": 41, - "SYNC_SETTING": 42, - "COMMUNITY_MESSAGE_ARCHIVE_MAGNETLINK": 43, - "SYNC_PROFILE_PICTURES": 44, - "SYNC_ACCOUNT": 45, - "ACCEPT_CONTACT_REQUEST": 46, - "RETRACT_CONTACT_REQUEST": 47, - "COMMUNITY_REQUEST_TO_JOIN_RESPONSE": 48, - "SYNC_COMMUNITY_SETTINGS": 49, - "REQUEST_CONTACT_VERIFICATION": 50, - "ACCEPT_CONTACT_VERIFICATION": 51, - "DECLINE_CONTACT_VERIFICATION": 52, - "SYNC_TRUSTED_USER": 53, - "SYNC_VERIFICATION_REQUEST": 54, - "SYNC_CONTACT_REQUEST_DECISION": 56, - "COMMUNITY_REQUEST_TO_LEAVE": 57, - "SYNC_DELETE_FOR_ME_MESSAGE": 58, - "SYNC_SAVED_ADDRESS": 59, - "COMMUNITY_CANCEL_REQUEST_TO_JOIN": 60, - "CANCEL_CONTACT_VERIFICATION": 61, - "SYNC_KEYPAIR": 62, - "SYNC_SOCIAL_LINKS": 63, - "SYNC_ENS_USERNAME_DETAIL": 64, - "COMMUNITY_EVENTS_MESSAGE": 67, - "COMMUNITY_EDIT_SHARED_ADDRESSES": 68, - "SYNC_ACCOUNT_CUSTOMIZATION_COLOR": 69, - "SYNC_ACCOUNTS_POSITIONS": 70, - "COMMUNITY_EVENTS_MESSAGE_REJECTED": 71, - "COMMUNITY_PRIVILEGED_USER_SYNC_MESSAGE": 72, - "COMMUNITY_SHARD_KEY": 73, - "SYNC_CHAT": 74, - "SYNC_ACTIVITY_CENTER_DELETED": 75, - "SYNC_ACTIVITY_CENTER_UNREAD": 76, - "SYNC_ACTIVITY_CENTER_COMMUNITY_REQUEST_DECISION": 77, - "SYNC_TOKEN_PREFERENCES": 78, - "COMMUNITY_PUBLIC_SHARD_INFO": 79, - "SYNC_COLLECTIBLE_PREFERENCES": 80, - "COMMUNITY_USER_KICKED": 81, - "SYNC_PROFILE_SHOWCASE_PREFERENCES": 82, - "COMMUNITY_PUBLIC_STORENODES_INFO": 83, - } -) +var ApplicationMetadataMessage_Type_name = map[int32]string{ + 0: "UNKNOWN", + 1: "CHAT_MESSAGE", + 2: "CONTACT_UPDATE", + 3: "MEMBERSHIP_UPDATE_MESSAGE", + 4: "SYNC_PAIR_INSTALLATION", + 5: "DEPRECATED_SYNC_INSTALLATION", + 6: "REQUEST_ADDRESS_FOR_TRANSACTION", + 7: "ACCEPT_REQUEST_ADDRESS_FOR_TRANSACTION", + 8: "DECLINE_REQUEST_ADDRESS_FOR_TRANSACTION", + 9: "REQUEST_TRANSACTION", + 10: "SEND_TRANSACTION", + 11: "DECLINE_REQUEST_TRANSACTION", + 12: "SYNC_INSTALLATION_CONTACT_V2", + 13: "SYNC_INSTALLATION_ACCOUNT", + 15: "CONTACT_CODE_ADVERTISEMENT", + 16: "PUSH_NOTIFICATION_REGISTRATION", + 17: "PUSH_NOTIFICATION_REGISTRATION_RESPONSE", + 18: "PUSH_NOTIFICATION_QUERY", + 19: "PUSH_NOTIFICATION_QUERY_RESPONSE", + 20: "PUSH_NOTIFICATION_REQUEST", + 21: "PUSH_NOTIFICATION_RESPONSE", + 22: "EMOJI_REACTION", + 23: "GROUP_CHAT_INVITATION", + 24: "CHAT_IDENTITY", + 25: "COMMUNITY_DESCRIPTION", + 26: "COMMUNITY_INVITATION", + 27: "COMMUNITY_REQUEST_TO_JOIN", + 28: "PIN_MESSAGE", + 29: "EDIT_MESSAGE", + 30: "STATUS_UPDATE", + 31: "DELETE_MESSAGE", + 32: "SYNC_INSTALLATION_COMMUNITY", + 33: "ANONYMOUS_METRIC_BATCH", + 34: "SYNC_CHAT_REMOVED", + 35: "SYNC_CHAT_MESSAGES_READ", + 36: "BACKUP", + 37: "SYNC_ACTIVITY_CENTER_READ", + 38: "SYNC_ACTIVITY_CENTER_ACCEPTED", + 39: "SYNC_ACTIVITY_CENTER_DISMISSED", + 40: "SYNC_BOOKMARK", + 41: "SYNC_CLEAR_HISTORY", + 42: "SYNC_SETTING", + 43: "COMMUNITY_MESSAGE_ARCHIVE_MAGNETLINK", + 44: "SYNC_PROFILE_PICTURES", + 45: "SYNC_ACCOUNT", + 46: "ACCEPT_CONTACT_REQUEST", + 47: "RETRACT_CONTACT_REQUEST", + 48: "COMMUNITY_REQUEST_TO_JOIN_RESPONSE", + 49: "SYNC_COMMUNITY_SETTINGS", + 50: "REQUEST_CONTACT_VERIFICATION", + 51: "ACCEPT_CONTACT_VERIFICATION", + 52: "DECLINE_CONTACT_VERIFICATION", + 53: "SYNC_TRUSTED_USER", + 54: "SYNC_VERIFICATION_REQUEST", + 56: "SYNC_CONTACT_REQUEST_DECISION", + 57: "COMMUNITY_REQUEST_TO_LEAVE", + 58: "SYNC_DELETE_FOR_ME_MESSAGE", + 59: "SYNC_SAVED_ADDRESS", + 60: "COMMUNITY_CANCEL_REQUEST_TO_JOIN", + 61: "CANCEL_CONTACT_VERIFICATION", + 62: "SYNC_KEYPAIR", + 63: "SYNC_SOCIAL_LINKS", + 64: "SYNC_ENS_USERNAME_DETAIL", + 67: "COMMUNITY_EVENTS_MESSAGE", + 68: "COMMUNITY_EDIT_SHARED_ADDRESSES", + 69: "SYNC_ACCOUNT_CUSTOMIZATION_COLOR", + 70: "SYNC_ACCOUNTS_POSITIONS", + 71: "COMMUNITY_EVENTS_MESSAGE_REJECTED", + 72: "COMMUNITY_PRIVILEGED_USER_SYNC_MESSAGE", + 73: "COMMUNITY_SHARD_KEY", + 74: "SYNC_CHAT", + 75: "SYNC_ACTIVITY_CENTER_DELETED", + 76: "SYNC_ACTIVITY_CENTER_UNREAD", + 77: "SYNC_ACTIVITY_CENTER_COMMUNITY_REQUEST_DECISION", + 78: "SYNC_TOKEN_PREFERENCES", + 79: "COMMUNITY_PUBLIC_SHARD_INFO", + 80: "SYNC_COLLECTIBLE_PREFERENCES", + 81: "COMMUNITY_USER_KICKED", + 82: "SYNC_PROFILE_SHOWCASE_PREFERENCES", + 83: "COMMUNITY_PUBLIC_STORENODES_INFO", +} -func (x ApplicationMetadataMessage_Type) Enum() *ApplicationMetadataMessage_Type { - p := new(ApplicationMetadataMessage_Type) - *p = x - return p +var ApplicationMetadataMessage_Type_value = map[string]int32{ + "UNKNOWN": 0, + "CHAT_MESSAGE": 1, + "CONTACT_UPDATE": 2, + "MEMBERSHIP_UPDATE_MESSAGE": 3, + "SYNC_PAIR_INSTALLATION": 4, + "DEPRECATED_SYNC_INSTALLATION": 5, + "REQUEST_ADDRESS_FOR_TRANSACTION": 6, + "ACCEPT_REQUEST_ADDRESS_FOR_TRANSACTION": 7, + "DECLINE_REQUEST_ADDRESS_FOR_TRANSACTION": 8, + "REQUEST_TRANSACTION": 9, + "SEND_TRANSACTION": 10, + "DECLINE_REQUEST_TRANSACTION": 11, + "SYNC_INSTALLATION_CONTACT_V2": 12, + "SYNC_INSTALLATION_ACCOUNT": 13, + "CONTACT_CODE_ADVERTISEMENT": 15, + "PUSH_NOTIFICATION_REGISTRATION": 16, + "PUSH_NOTIFICATION_REGISTRATION_RESPONSE": 17, + "PUSH_NOTIFICATION_QUERY": 18, + "PUSH_NOTIFICATION_QUERY_RESPONSE": 19, + "PUSH_NOTIFICATION_REQUEST": 20, + "PUSH_NOTIFICATION_RESPONSE": 21, + "EMOJI_REACTION": 22, + "GROUP_CHAT_INVITATION": 23, + "CHAT_IDENTITY": 24, + "COMMUNITY_DESCRIPTION": 25, + "COMMUNITY_INVITATION": 26, + "COMMUNITY_REQUEST_TO_JOIN": 27, + "PIN_MESSAGE": 28, + "EDIT_MESSAGE": 29, + "STATUS_UPDATE": 30, + "DELETE_MESSAGE": 31, + "SYNC_INSTALLATION_COMMUNITY": 32, + "ANONYMOUS_METRIC_BATCH": 33, + "SYNC_CHAT_REMOVED": 34, + "SYNC_CHAT_MESSAGES_READ": 35, + "BACKUP": 36, + "SYNC_ACTIVITY_CENTER_READ": 37, + "SYNC_ACTIVITY_CENTER_ACCEPTED": 38, + "SYNC_ACTIVITY_CENTER_DISMISSED": 39, + "SYNC_BOOKMARK": 40, + "SYNC_CLEAR_HISTORY": 41, + "SYNC_SETTING": 42, + "COMMUNITY_MESSAGE_ARCHIVE_MAGNETLINK": 43, + "SYNC_PROFILE_PICTURES": 44, + "SYNC_ACCOUNT": 45, + "ACCEPT_CONTACT_REQUEST": 46, + "RETRACT_CONTACT_REQUEST": 47, + "COMMUNITY_REQUEST_TO_JOIN_RESPONSE": 48, + "SYNC_COMMUNITY_SETTINGS": 49, + "REQUEST_CONTACT_VERIFICATION": 50, + "ACCEPT_CONTACT_VERIFICATION": 51, + "DECLINE_CONTACT_VERIFICATION": 52, + "SYNC_TRUSTED_USER": 53, + "SYNC_VERIFICATION_REQUEST": 54, + "SYNC_CONTACT_REQUEST_DECISION": 56, + "COMMUNITY_REQUEST_TO_LEAVE": 57, + "SYNC_DELETE_FOR_ME_MESSAGE": 58, + "SYNC_SAVED_ADDRESS": 59, + "COMMUNITY_CANCEL_REQUEST_TO_JOIN": 60, + "CANCEL_CONTACT_VERIFICATION": 61, + "SYNC_KEYPAIR": 62, + "SYNC_SOCIAL_LINKS": 63, + "SYNC_ENS_USERNAME_DETAIL": 64, + "COMMUNITY_EVENTS_MESSAGE": 67, + "COMMUNITY_EDIT_SHARED_ADDRESSES": 68, + "SYNC_ACCOUNT_CUSTOMIZATION_COLOR": 69, + "SYNC_ACCOUNTS_POSITIONS": 70, + "COMMUNITY_EVENTS_MESSAGE_REJECTED": 71, + "COMMUNITY_PRIVILEGED_USER_SYNC_MESSAGE": 72, + "COMMUNITY_SHARD_KEY": 73, + "SYNC_CHAT": 74, + "SYNC_ACTIVITY_CENTER_DELETED": 75, + "SYNC_ACTIVITY_CENTER_UNREAD": 76, + "SYNC_ACTIVITY_CENTER_COMMUNITY_REQUEST_DECISION": 77, + "SYNC_TOKEN_PREFERENCES": 78, + "COMMUNITY_PUBLIC_SHARD_INFO": 79, + "SYNC_COLLECTIBLE_PREFERENCES": 80, + "COMMUNITY_USER_KICKED": 81, + "SYNC_PROFILE_SHOWCASE_PREFERENCES": 82, + "COMMUNITY_PUBLIC_STORENODES_INFO": 83, } func (x ApplicationMetadataMessage_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(ApplicationMetadataMessage_Type_name, int32(x)) } -func (ApplicationMetadataMessage_Type) Descriptor() protoreflect.EnumDescriptor { - return file_application_metadata_message_proto_enumTypes[0].Descriptor() -} - -func (ApplicationMetadataMessage_Type) Type() protoreflect.EnumType { - return &file_application_metadata_message_proto_enumTypes[0] -} - -func (x ApplicationMetadataMessage_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ApplicationMetadataMessage_Type.Descriptor instead. func (ApplicationMetadataMessage_Type) EnumDescriptor() ([]byte, []int) { - return file_application_metadata_message_proto_rawDescGZIP(), []int{0, 0} + return fileDescriptor_ad09a6406fcf24c7, []int{0, 0} } type ApplicationMetadataMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Signature of the payload field Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` // This is the encoded protobuf of the application level message, i.e ChatMessage Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // The type of protobuf message sent - Type ApplicationMetadataMessage_Type `protobuf:"varint,3,opt,name=type,proto3,enum=protobuf.ApplicationMetadataMessage_Type" json:"type,omitempty"` + Type ApplicationMetadataMessage_Type `protobuf:"varint,3,opt,name=type,proto3,enum=protobuf.ApplicationMetadataMessage_Type" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ApplicationMetadataMessage) Reset() { - *x = ApplicationMetadataMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_application_metadata_message_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ApplicationMetadataMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApplicationMetadataMessage) ProtoMessage() {} - -func (x *ApplicationMetadataMessage) ProtoReflect() protoreflect.Message { - mi := &file_application_metadata_message_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ApplicationMetadataMessage.ProtoReflect.Descriptor instead. +func (m *ApplicationMetadataMessage) Reset() { *m = ApplicationMetadataMessage{} } +func (m *ApplicationMetadataMessage) String() string { return proto.CompactTextString(m) } +func (*ApplicationMetadataMessage) ProtoMessage() {} func (*ApplicationMetadataMessage) Descriptor() ([]byte, []int) { - return file_application_metadata_message_proto_rawDescGZIP(), []int{0} + return fileDescriptor_ad09a6406fcf24c7, []int{0} } -func (x *ApplicationMetadataMessage) GetSignature() []byte { - if x != nil { - return x.Signature +func (m *ApplicationMetadataMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ApplicationMetadataMessage.Unmarshal(m, b) +} +func (m *ApplicationMetadataMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ApplicationMetadataMessage.Marshal(b, m, deterministic) +} +func (m *ApplicationMetadataMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplicationMetadataMessage.Merge(m, src) +} +func (m *ApplicationMetadataMessage) XXX_Size() int { + return xxx_messageInfo_ApplicationMetadataMessage.Size(m) +} +func (m *ApplicationMetadataMessage) XXX_DiscardUnknown() { + xxx_messageInfo_ApplicationMetadataMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_ApplicationMetadataMessage proto.InternalMessageInfo + +func (m *ApplicationMetadataMessage) GetSignature() []byte { + if m != nil { + return m.Signature } return nil } -func (x *ApplicationMetadataMessage) GetPayload() []byte { - if x != nil { - return x.Payload +func (m *ApplicationMetadataMessage) GetPayload() []byte { + if m != nil { + return m.Payload } return nil } -func (x *ApplicationMetadataMessage) GetType() ApplicationMetadataMessage_Type { - if x != nil { - return x.Type +func (m *ApplicationMetadataMessage) GetType() ApplicationMetadataMessage_Type { + if m != nil { + return m.Type } return ApplicationMetadataMessage_UNKNOWN } -var File_application_metadata_message_proto protoreflect.FileDescriptor - -var file_application_metadata_message_proto_rawDesc = []byte{ - 0x0a, 0x22, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0xed, - 0x14, 0x0a, 0x1a, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, - 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, - 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, - 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x3d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, - 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, - 0x74, 0x79, 0x70, 0x65, 0x22, 0xd7, 0x13, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, - 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x48, - 0x41, 0x54, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, - 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x02, - 0x12, 0x1d, 0x0a, 0x19, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x48, 0x49, 0x50, 0x5f, 0x55, - 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x03, 0x12, - 0x1a, 0x0a, 0x16, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x50, 0x41, 0x49, 0x52, 0x5f, 0x49, 0x4e, 0x53, - 0x54, 0x41, 0x4c, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x24, 0x0a, 0x1c, 0x44, - 0x45, 0x50, 0x52, 0x45, 0x43, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x49, - 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x05, 0x1a, 0x02, 0x08, - 0x01, 0x12, 0x23, 0x0a, 0x1f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x41, 0x44, 0x44, - 0x52, 0x45, 0x53, 0x53, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, - 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x06, 0x12, 0x2a, 0x0a, 0x26, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, - 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, - 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, - 0x10, 0x07, 0x12, 0x2b, 0x0a, 0x27, 0x44, 0x45, 0x43, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x52, 0x45, - 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, 0x5f, 0x46, 0x4f, - 0x52, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x08, 0x12, - 0x17, 0x0a, 0x13, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, - 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x09, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x45, 0x4e, 0x44, - 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0a, 0x12, 0x1f, - 0x0a, 0x1b, 0x44, 0x45, 0x43, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, - 0x54, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0b, 0x12, - 0x20, 0x0a, 0x1c, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x41, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, 0x5f, 0x56, 0x32, 0x10, - 0x0c, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, - 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x10, 0x0d, - 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, 0x5f, 0x43, 0x4f, 0x44, 0x45, - 0x5f, 0x41, 0x44, 0x56, 0x45, 0x52, 0x54, 0x49, 0x53, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x0f, - 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x55, 0x53, 0x48, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, - 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x49, 0x53, 0x54, 0x52, 0x41, 0x54, 0x49, - 0x4f, 0x4e, 0x10, 0x10, 0x12, 0x2b, 0x0a, 0x27, 0x50, 0x55, 0x53, 0x48, 0x5f, 0x4e, 0x4f, 0x54, - 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x49, 0x53, 0x54, - 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x10, - 0x11, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x55, 0x53, 0x48, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, - 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x12, 0x12, 0x24, - 0x0a, 0x20, 0x50, 0x55, 0x53, 0x48, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, - 0x49, 0x4f, 0x4e, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, - 0x53, 0x45, 0x10, 0x13, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x55, 0x53, 0x48, 0x5f, 0x4e, 0x4f, 0x54, - 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, - 0x54, 0x10, 0x14, 0x12, 0x1e, 0x0a, 0x1a, 0x50, 0x55, 0x53, 0x48, 0x5f, 0x4e, 0x4f, 0x54, 0x49, - 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, - 0x45, 0x10, 0x15, 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x4d, 0x4f, 0x4a, 0x49, 0x5f, 0x52, 0x45, 0x41, - 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x16, 0x12, 0x19, 0x0a, 0x15, 0x47, 0x52, 0x4f, 0x55, 0x50, - 0x5f, 0x43, 0x48, 0x41, 0x54, 0x5f, 0x49, 0x4e, 0x56, 0x49, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, - 0x10, 0x17, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x48, 0x41, 0x54, 0x5f, 0x49, 0x44, 0x45, 0x4e, 0x54, - 0x49, 0x54, 0x59, 0x10, 0x18, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, - 0x54, 0x59, 0x5f, 0x44, 0x45, 0x53, 0x43, 0x52, 0x49, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x19, - 0x12, 0x1c, 0x0a, 0x14, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x49, 0x4e, - 0x56, 0x49, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x1a, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x1d, - 0x0a, 0x19, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, - 0x45, 0x53, 0x54, 0x5f, 0x54, 0x4f, 0x5f, 0x4a, 0x4f, 0x49, 0x4e, 0x10, 0x1b, 0x12, 0x0f, 0x0a, - 0x0b, 0x50, 0x49, 0x4e, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x1c, 0x12, 0x10, - 0x0a, 0x0c, 0x45, 0x44, 0x49, 0x54, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x1d, - 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, - 0x45, 0x10, 0x1e, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x5f, 0x4d, 0x45, - 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x1f, 0x12, 0x1f, 0x0a, 0x1b, 0x53, 0x59, 0x4e, 0x43, 0x5f, - 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x4d, - 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x10, 0x20, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x4e, 0x4f, 0x4e, - 0x59, 0x4d, 0x4f, 0x55, 0x53, 0x5f, 0x4d, 0x45, 0x54, 0x52, 0x49, 0x43, 0x5f, 0x42, 0x41, 0x54, - 0x43, 0x48, 0x10, 0x21, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x43, 0x48, 0x41, - 0x54, 0x5f, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x22, 0x12, 0x1b, 0x0a, 0x17, 0x53, - 0x59, 0x4e, 0x43, 0x5f, 0x43, 0x48, 0x41, 0x54, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, - 0x53, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x10, 0x23, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x41, 0x43, 0x4b, - 0x55, 0x50, 0x10, 0x24, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x41, 0x43, 0x54, - 0x49, 0x56, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x41, - 0x44, 0x10, 0x25, 0x12, 0x21, 0x0a, 0x1d, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x41, 0x43, 0x54, 0x49, - 0x56, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x41, 0x43, 0x43, 0x45, - 0x50, 0x54, 0x45, 0x44, 0x10, 0x26, 0x12, 0x22, 0x0a, 0x1e, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x41, - 0x43, 0x54, 0x49, 0x56, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x44, - 0x49, 0x53, 0x4d, 0x49, 0x53, 0x53, 0x45, 0x44, 0x10, 0x27, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x59, - 0x4e, 0x43, 0x5f, 0x42, 0x4f, 0x4f, 0x4b, 0x4d, 0x41, 0x52, 0x4b, 0x10, 0x28, 0x12, 0x16, 0x0a, - 0x12, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x43, 0x4c, 0x45, 0x41, 0x52, 0x5f, 0x48, 0x49, 0x53, 0x54, - 0x4f, 0x52, 0x59, 0x10, 0x29, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x53, 0x45, - 0x54, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x2a, 0x12, 0x28, 0x0a, 0x24, 0x43, 0x4f, 0x4d, 0x4d, 0x55, - 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x52, 0x43, - 0x48, 0x49, 0x56, 0x45, 0x5f, 0x4d, 0x41, 0x47, 0x4e, 0x45, 0x54, 0x4c, 0x49, 0x4e, 0x4b, 0x10, - 0x2b, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x50, 0x52, 0x4f, 0x46, 0x49, 0x4c, - 0x45, 0x5f, 0x50, 0x49, 0x43, 0x54, 0x55, 0x52, 0x45, 0x53, 0x10, 0x2c, 0x12, 0x10, 0x0a, 0x0c, - 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x10, 0x2d, 0x12, 0x1a, - 0x0a, 0x16, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, - 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, 0x2e, 0x12, 0x1b, 0x0a, 0x17, 0x52, 0x45, - 0x54, 0x52, 0x41, 0x43, 0x54, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, 0x5f, 0x52, 0x45, - 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, 0x2f, 0x12, 0x26, 0x0a, 0x22, 0x43, 0x4f, 0x4d, 0x4d, 0x55, - 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x54, 0x4f, 0x5f, - 0x4a, 0x4f, 0x49, 0x4e, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x10, 0x30, 0x12, - 0x1b, 0x0a, 0x17, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, - 0x59, 0x5f, 0x53, 0x45, 0x54, 0x54, 0x49, 0x4e, 0x47, 0x53, 0x10, 0x31, 0x12, 0x20, 0x0a, 0x1c, - 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, 0x5f, - 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x32, 0x12, 0x1f, - 0x0a, 0x1b, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, - 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x33, 0x12, - 0x20, 0x0a, 0x1c, 0x44, 0x45, 0x43, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, - 0x43, 0x54, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, - 0x34, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x54, 0x52, 0x55, 0x53, 0x54, 0x45, - 0x44, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x10, 0x35, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x59, 0x4e, 0x43, - 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, - 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, 0x36, 0x12, 0x21, 0x0a, 0x1d, 0x53, 0x59, 0x4e, 0x43, 0x5f, - 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, - 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x38, 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x4f, - 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, - 0x54, 0x4f, 0x5f, 0x4c, 0x45, 0x41, 0x56, 0x45, 0x10, 0x39, 0x12, 0x1e, 0x0a, 0x1a, 0x53, 0x59, - 0x4e, 0x43, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x4d, 0x45, - 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x3a, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x59, - 0x4e, 0x43, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x44, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, - 0x10, 0x3b, 0x12, 0x24, 0x0a, 0x20, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, - 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x54, - 0x4f, 0x5f, 0x4a, 0x4f, 0x49, 0x4e, 0x10, 0x3c, 0x12, 0x1f, 0x0a, 0x1b, 0x43, 0x41, 0x4e, 0x43, - 0x45, 0x4c, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, - 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x3d, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x59, 0x4e, - 0x43, 0x5f, 0x4b, 0x45, 0x59, 0x50, 0x41, 0x49, 0x52, 0x10, 0x3e, 0x12, 0x15, 0x0a, 0x11, 0x53, - 0x59, 0x4e, 0x43, 0x5f, 0x53, 0x4f, 0x43, 0x49, 0x41, 0x4c, 0x5f, 0x4c, 0x49, 0x4e, 0x4b, 0x53, - 0x10, 0x3f, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x45, 0x4e, 0x53, 0x5f, 0x55, - 0x53, 0x45, 0x52, 0x4e, 0x41, 0x4d, 0x45, 0x5f, 0x44, 0x45, 0x54, 0x41, 0x49, 0x4c, 0x10, 0x40, - 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x45, 0x56, - 0x45, 0x4e, 0x54, 0x53, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x43, 0x12, 0x23, - 0x0a, 0x1f, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x45, 0x44, 0x49, 0x54, - 0x5f, 0x53, 0x48, 0x41, 0x52, 0x45, 0x44, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, 0x45, - 0x53, 0x10, 0x44, 0x12, 0x24, 0x0a, 0x20, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x41, 0x43, 0x43, 0x4f, - 0x55, 0x4e, 0x54, 0x5f, 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x10, 0x45, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x59, 0x4e, - 0x43, 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x53, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, - 0x49, 0x4f, 0x4e, 0x53, 0x10, 0x46, 0x12, 0x25, 0x0a, 0x21, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, - 0x49, 0x54, 0x59, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x53, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, - 0x47, 0x45, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x47, 0x12, 0x2a, 0x0a, - 0x26, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x49, - 0x4c, 0x45, 0x47, 0x45, 0x44, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x5f, - 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x48, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x4d, - 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x53, 0x48, 0x41, 0x52, 0x44, 0x5f, 0x4b, 0x45, 0x59, - 0x10, 0x49, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x43, 0x48, 0x41, 0x54, 0x10, - 0x4a, 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x49, - 0x54, 0x59, 0x5f, 0x43, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, - 0x44, 0x10, 0x4b, 0x12, 0x1f, 0x0a, 0x1b, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x41, 0x43, 0x54, 0x49, - 0x56, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x52, 0x45, - 0x41, 0x44, 0x10, 0x4c, 0x12, 0x33, 0x0a, 0x2f, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x41, 0x43, 0x54, - 0x49, 0x56, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x43, 0x4f, 0x4d, - 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x44, - 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x4d, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x59, 0x4e, - 0x43, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, - 0x43, 0x45, 0x53, 0x10, 0x4e, 0x12, 0x1f, 0x0a, 0x1b, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, - 0x54, 0x59, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x53, 0x48, 0x41, 0x52, 0x44, 0x5f, - 0x49, 0x4e, 0x46, 0x4f, 0x10, 0x4f, 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x43, - 0x4f, 0x4c, 0x4c, 0x45, 0x43, 0x54, 0x49, 0x42, 0x4c, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x45, - 0x52, 0x45, 0x4e, 0x43, 0x45, 0x53, 0x10, 0x50, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x4f, 0x4d, 0x4d, - 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x4b, 0x49, 0x43, 0x4b, 0x45, - 0x44, 0x10, 0x51, 0x12, 0x25, 0x0a, 0x21, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x50, 0x52, 0x4f, 0x46, - 0x49, 0x4c, 0x45, 0x5f, 0x53, 0x48, 0x4f, 0x57, 0x43, 0x41, 0x53, 0x45, 0x5f, 0x50, 0x52, 0x45, - 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x53, 0x10, 0x52, 0x12, 0x24, 0x0a, 0x20, 0x43, 0x4f, - 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x53, - 0x54, 0x4f, 0x52, 0x45, 0x4e, 0x4f, 0x44, 0x45, 0x53, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0x53, - 0x22, 0x04, 0x08, 0x0e, 0x10, 0x0e, 0x22, 0x04, 0x08, 0x41, 0x10, 0x41, 0x22, 0x04, 0x08, 0x42, - 0x10, 0x42, 0x2a, 0x1d, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, - 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x43, 0x48, 0x41, - 0x54, 0x2a, 0x22, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x49, 0x54, 0x59, - 0x5f, 0x43, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, - 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x2a, 0x27, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x41, 0x43, 0x54, 0x49, - 0x56, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x4e, 0x4f, 0x54, 0x49, - 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x42, 0x0d, - 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterEnum("protobuf.ApplicationMetadataMessage_Type", ApplicationMetadataMessage_Type_name, ApplicationMetadataMessage_Type_value) + proto.RegisterType((*ApplicationMetadataMessage)(nil), "protobuf.ApplicationMetadataMessage") } -var ( - file_application_metadata_message_proto_rawDescOnce sync.Once - file_application_metadata_message_proto_rawDescData = file_application_metadata_message_proto_rawDesc -) - -func file_application_metadata_message_proto_rawDescGZIP() []byte { - file_application_metadata_message_proto_rawDescOnce.Do(func() { - file_application_metadata_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_application_metadata_message_proto_rawDescData) - }) - return file_application_metadata_message_proto_rawDescData +func init() { + proto.RegisterFile("application_metadata_message.proto", fileDescriptor_ad09a6406fcf24c7) } -var file_application_metadata_message_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_application_metadata_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_application_metadata_message_proto_goTypes = []interface{}{ - (ApplicationMetadataMessage_Type)(0), // 0: protobuf.ApplicationMetadataMessage.Type - (*ApplicationMetadataMessage)(nil), // 1: protobuf.ApplicationMetadataMessage -} -var file_application_metadata_message_proto_depIdxs = []int32{ - 0, // 0: protobuf.ApplicationMetadataMessage.type:type_name -> protobuf.ApplicationMetadataMessage.Type - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_application_metadata_message_proto_init() } -func file_application_metadata_message_proto_init() { - if File_application_metadata_message_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_application_metadata_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplicationMetadataMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_application_metadata_message_proto_rawDesc, - NumEnums: 1, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_application_metadata_message_proto_goTypes, - DependencyIndexes: file_application_metadata_message_proto_depIdxs, - EnumInfos: file_application_metadata_message_proto_enumTypes, - MessageInfos: file_application_metadata_message_proto_msgTypes, - }.Build() - File_application_metadata_message_proto = out.File - file_application_metadata_message_proto_rawDesc = nil - file_application_metadata_message_proto_goTypes = nil - file_application_metadata_message_proto_depIdxs = nil +var fileDescriptor_ad09a6406fcf24c7 = []byte{ + // 1200 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x56, 0x6d, 0x73, 0x13, 0x37, + 0x10, 0x6e, 0xc0, 0x05, 0xa3, 0x90, 0x20, 0x44, 0x00, 0x27, 0x38, 0x10, 0x4c, 0x80, 0x10, 0x5a, + 0xd3, 0x26, 0x6d, 0xa7, 0x2d, 0xa5, 0xad, 0x2c, 0xad, 0x6d, 0xc5, 0x77, 0xd2, 0x45, 0xd2, 0x99, + 0x31, 0x5f, 0x34, 0xa6, 0xb8, 0x4c, 0x66, 0x80, 0x78, 0x88, 0xf9, 0x90, 0x5f, 0xda, 0x5f, 0xd1, + 0xff, 0xd0, 0xd1, 0xbd, 0xda, 0xb1, 0xd3, 0x7c, 0x4a, 0xac, 0x7d, 0xb4, 0xda, 0x7d, 0xf6, 0xd9, + 0xdd, 0x43, 0x8d, 0xe1, 0x78, 0xfc, 0xe1, 0xe8, 0xaf, 0xe1, 0xe4, 0xe8, 0xf8, 0x93, 0xfb, 0x38, + 0x9a, 0x0c, 0xdf, 0x0d, 0x27, 0x43, 0xf7, 0x71, 0x74, 0x72, 0x32, 0x7c, 0x3f, 0x6a, 0x8e, 0x3f, + 0x1f, 0x4f, 0x8e, 0x49, 0x35, 0xf9, 0xf3, 0xf6, 0xcb, 0xdf, 0x8d, 0x7f, 0xd7, 0xd0, 0x06, 0x2d, + 0x2f, 0x84, 0x19, 0x3e, 0x4c, 0xe1, 0xa4, 0x8e, 0xae, 0x9d, 0x1c, 0xbd, 0xff, 0x34, 0x9c, 0x7c, + 0xf9, 0x3c, 0xaa, 0x2d, 0x6d, 0x2d, 0xed, 0x5c, 0xd7, 0xe5, 0x01, 0xa9, 0xa1, 0xab, 0xe3, 0xe1, + 0xe9, 0x87, 0xe3, 0xe1, 0xbb, 0xda, 0xa5, 0xc4, 0x96, 0xff, 0x24, 0xaf, 0x50, 0x65, 0x72, 0x3a, + 0x1e, 0xd5, 0x2e, 0x6f, 0x2d, 0xed, 0xac, 0xee, 0x3d, 0x6b, 0xe6, 0xef, 0x35, 0xcf, 0x7f, 0xab, + 0x69, 0x4f, 0xc7, 0x23, 0x9d, 0x5c, 0x6b, 0xfc, 0x73, 0x0b, 0x55, 0xfc, 0x4f, 0xb2, 0x8c, 0xae, + 0xc6, 0xb2, 0x27, 0xd5, 0x6b, 0x89, 0xbf, 0x22, 0x18, 0x5d, 0x67, 0x5d, 0x6a, 0x5d, 0x08, 0xc6, + 0xd0, 0x0e, 0xe0, 0x25, 0x42, 0xd0, 0x2a, 0x53, 0xd2, 0x52, 0x66, 0x5d, 0x1c, 0x71, 0x6a, 0x01, + 0x5f, 0x22, 0x9b, 0x68, 0x3d, 0x84, 0xb0, 0x05, 0xda, 0x74, 0x45, 0x94, 0x1d, 0x17, 0x57, 0x2e, + 0x93, 0x0d, 0x74, 0xc7, 0x0c, 0x24, 0x73, 0x11, 0x15, 0xda, 0x09, 0x69, 0x2c, 0x0d, 0x02, 0x6a, + 0x85, 0x92, 0xb8, 0x42, 0xb6, 0x51, 0x9d, 0x43, 0xa4, 0x81, 0x51, 0x0b, 0xdc, 0x25, 0xb0, 0x19, + 0xc4, 0xd7, 0x1b, 0x97, 0xaa, 0x4b, 0xe4, 0x11, 0x7a, 0xa0, 0xe1, 0x30, 0x06, 0x63, 0x1d, 0xe5, + 0x5c, 0x83, 0x31, 0xae, 0xad, 0xb4, 0xb3, 0x9a, 0x4a, 0x43, 0x59, 0x02, 0xbc, 0x42, 0x76, 0xd1, + 0x13, 0xca, 0x18, 0x44, 0xd6, 0x5d, 0x84, 0xbd, 0x4a, 0x9e, 0xa3, 0xa7, 0x1c, 0x58, 0x20, 0x24, + 0x5c, 0x08, 0xae, 0x92, 0xbb, 0xe8, 0x56, 0x0e, 0x9a, 0x36, 0x5c, 0x23, 0x6b, 0x08, 0x1b, 0x90, + 0x7c, 0xe6, 0x14, 0x91, 0x07, 0xe8, 0xde, 0x59, 0xdf, 0xd3, 0x80, 0x65, 0xb2, 0x85, 0xea, 0x73, + 0x89, 0xba, 0x9c, 0xd4, 0xfe, 0x1e, 0xbe, 0xee, 0x09, 0x9d, 0x47, 0x50, 0xc6, 0x54, 0x2c, 0x2d, + 0x5e, 0x21, 0xf7, 0xd1, 0x46, 0x0e, 0x67, 0x8a, 0x83, 0xa3, 0xbc, 0x0f, 0xda, 0x0a, 0x03, 0x21, + 0x48, 0x8b, 0x6f, 0x90, 0x06, 0xba, 0x1f, 0xc5, 0xa6, 0xeb, 0xa4, 0xb2, 0xa2, 0x2d, 0x58, 0x7a, + 0x5d, 0x43, 0x47, 0x18, 0xab, 0x53, 0x5a, 0xb1, 0x67, 0xe0, 0xff, 0x31, 0x4e, 0x83, 0x89, 0x94, + 0x34, 0x80, 0x6f, 0x92, 0x7b, 0xe8, 0xee, 0x3c, 0xf8, 0x30, 0x06, 0x3d, 0xc0, 0x84, 0x6c, 0xa3, + 0xad, 0x73, 0x8c, 0xa5, 0x8b, 0x5b, 0x3e, 0xa5, 0x45, 0xef, 0x25, 0xfc, 0xe0, 0x35, 0x9f, 0xd2, + 0x22, 0x73, 0x76, 0xfd, 0xb6, 0x97, 0x1d, 0x84, 0xea, 0x40, 0x38, 0x0d, 0x19, 0x8f, 0x77, 0xc8, + 0x3a, 0xba, 0xdd, 0xd1, 0x2a, 0x8e, 0x5c, 0x22, 0x51, 0x21, 0xfb, 0xc2, 0xa6, 0xd9, 0xdd, 0x25, + 0x37, 0xd1, 0x4a, 0x7a, 0xc8, 0x41, 0x5a, 0x61, 0x07, 0xb8, 0xe6, 0xd1, 0x4c, 0x85, 0x61, 0x2c, + 0x85, 0x1d, 0x38, 0x0e, 0x86, 0x69, 0x11, 0x25, 0xe8, 0x75, 0x52, 0x47, 0x6b, 0xa5, 0x69, 0xca, + 0xcf, 0x46, 0x22, 0xbe, 0x4d, 0xb4, 0x5e, 0x5a, 0x8b, 0x8a, 0x2a, 0x77, 0xa0, 0x84, 0xc4, 0xf7, + 0xc8, 0x0d, 0xb4, 0x1c, 0x09, 0x59, 0xc8, 0xbd, 0xee, 0x7b, 0x06, 0xb8, 0x28, 0x7b, 0x66, 0xd3, + 0x47, 0x63, 0x2c, 0xb5, 0xb1, 0xc9, 0x5b, 0xe6, 0xbe, 0xcf, 0x87, 0x43, 0x00, 0x53, 0x7d, 0xf2, + 0xc0, 0x0b, 0x67, 0x91, 0x2e, 0xb2, 0xa7, 0xf1, 0x96, 0x6f, 0x24, 0x2a, 0x95, 0x1c, 0x84, 0x2a, + 0x36, 0x2e, 0x04, 0xab, 0x05, 0x73, 0x2d, 0x6a, 0x59, 0x17, 0x3f, 0x24, 0xb7, 0xd1, 0xcd, 0xe4, + 0x72, 0x92, 0xb6, 0x86, 0x50, 0xf5, 0x81, 0xe3, 0x86, 0xaf, 0x5c, 0x79, 0x9c, 0x3d, 0x65, 0x3c, + 0x89, 0x1c, 0x3f, 0x22, 0x08, 0x5d, 0x69, 0x51, 0xd6, 0x8b, 0x23, 0xbc, 0x5d, 0x48, 0xce, 0xb3, + 0xdb, 0xf7, 0x99, 0x32, 0x90, 0x16, 0x74, 0x0a, 0x7d, 0x4c, 0x1e, 0xa2, 0xcd, 0x85, 0xe6, 0xb4, + 0xe3, 0x80, 0xe3, 0x27, 0x5e, 0x75, 0x0b, 0x21, 0x5c, 0x98, 0x50, 0x18, 0x03, 0x1c, 0x3f, 0x4d, + 0x98, 0xf0, 0x98, 0x96, 0x52, 0xbd, 0x90, 0xea, 0x1e, 0xde, 0x21, 0x77, 0x10, 0x49, 0x23, 0x0c, + 0x80, 0x6a, 0xd7, 0x15, 0xc6, 0x2a, 0x3d, 0xc0, 0xcf, 0x3c, 0x8d, 0xc9, 0xb9, 0x01, 0x6b, 0x85, + 0xec, 0xe0, 0x5d, 0xb2, 0x83, 0xb6, 0xcb, 0x42, 0x64, 0xb9, 0x38, 0xaa, 0x59, 0x57, 0xf4, 0xc1, + 0x85, 0xb4, 0x23, 0xc1, 0x06, 0x42, 0xf6, 0xf0, 0x73, 0x5f, 0xeb, 0x74, 0xe2, 0x68, 0xd5, 0x16, + 0x01, 0xb8, 0x48, 0x30, 0x1b, 0x6b, 0x30, 0xf8, 0x9b, 0xc2, 0x6d, 0xde, 0x4d, 0xdf, 0x26, 0xac, + 0xa6, 0x73, 0x23, 0x6f, 0xaa, 0x5c, 0x96, 0x4d, 0x4f, 0x9f, 0x06, 0xab, 0xd3, 0x4e, 0x9b, 0x35, + 0xbe, 0x20, 0x4f, 0x50, 0xe3, 0x5c, 0x61, 0x94, 0xda, 0xfd, 0xae, 0xac, 0x41, 0x01, 0xce, 0x72, + 0x32, 0xf8, 0x7b, 0x3f, 0x0c, 0xf2, 0xab, 0xc5, 0x08, 0x00, 0x5d, 0xf4, 0x00, 0xde, 0xf3, 0xb2, + 0x38, 0x13, 0xdf, 0x0c, 0x60, 0xdf, 0xbb, 0xc8, 0x07, 0xce, 0x42, 0xc4, 0x0f, 0x85, 0x38, 0xac, + 0x8e, 0x8d, 0x9f, 0xb3, 0xb1, 0x01, 0x8d, 0x7f, 0x2c, 0x6a, 0x3e, 0x8d, 0x2e, 0xf2, 0xfb, 0xa9, + 0xa8, 0xf9, 0x99, 0xcc, 0x1d, 0x07, 0x26, 0x8c, 0x77, 0xfc, 0x73, 0x3a, 0x89, 0x16, 0x50, 0x10, + 0x00, 0xed, 0x03, 0xfe, 0xc5, 0xdb, 0x13, 0x17, 0x99, 0xd6, 0xfd, 0x6c, 0x0d, 0x4b, 0xc9, 0xff, + 0x5a, 0x14, 0xdf, 0xd0, 0x3e, 0xf0, 0x7c, 0x04, 0xe3, 0x97, 0x7e, 0xa6, 0x94, 0x7e, 0x19, 0x95, + 0x0c, 0x82, 0xb9, 0xd6, 0xfb, 0xcd, 0x33, 0x93, 0xd9, 0x16, 0xe6, 0xfd, 0xaa, 0x28, 0x76, 0x0f, + 0x06, 0x7e, 0xf9, 0xe0, 0xdf, 0x0b, 0x26, 0x8c, 0x62, 0x82, 0x06, 0xce, 0xeb, 0xc5, 0xe0, 0x3f, + 0x48, 0x1d, 0xd5, 0x92, 0x63, 0x90, 0x26, 0x21, 0x47, 0xd2, 0x10, 0x1c, 0x07, 0x4b, 0x45, 0x80, + 0xff, 0xf4, 0xd6, 0x32, 0x1a, 0xe8, 0x83, 0xb4, 0xa6, 0xc8, 0x81, 0xf9, 0xe5, 0x34, 0x65, 0xf5, + 0x9d, 0x6f, 0xba, 0x54, 0x97, 0xe9, 0x80, 0xc1, 0xdc, 0x27, 0x34, 0x2d, 0x3b, 0xc7, 0x62, 0x63, + 0x55, 0x28, 0xde, 0xe4, 0x4d, 0x1e, 0x28, 0x8d, 0xa1, 0x50, 0x4a, 0x86, 0x32, 0x2e, 0x52, 0x46, + 0x78, 0x84, 0xc1, 0x6d, 0xf2, 0x18, 0x3d, 0x3c, 0x2f, 0x0a, 0xa7, 0xe1, 0x00, 0x98, 0x6f, 0xc3, + 0x8e, 0x5f, 0x83, 0x25, 0x2c, 0xd2, 0xa2, 0x2f, 0x02, 0xe8, 0x64, 0x35, 0x4f, 0x17, 0x6c, 0x1e, + 0x7a, 0xd7, 0x6f, 0xb6, 0x29, 0x51, 0x76, 0xa9, 0xe6, 0x9e, 0x2a, 0x2c, 0xc8, 0x0a, 0xba, 0x56, + 0x8c, 0x0d, 0x7c, 0x50, 0x6c, 0xac, 0xb9, 0xd6, 0x4e, 0xca, 0xca, 0x71, 0xaf, 0x98, 0x5d, 0x67, + 0x11, 0xb1, 0x4c, 0x06, 0x48, 0x40, 0xf6, 0xd1, 0x8b, 0x85, 0x80, 0x79, 0xf9, 0x14, 0xf2, 0x0a, + 0x8b, 0x2f, 0x07, 0xab, 0x7a, 0x20, 0x5d, 0xa4, 0xa1, 0x0d, 0x1a, 0x24, 0x03, 0x83, 0x65, 0x52, + 0xfc, 0x32, 0xcf, 0xb8, 0x15, 0x08, 0x96, 0xa5, 0x20, 0x64, 0x5b, 0x61, 0x55, 0x04, 0xcd, 0x54, + 0x10, 0x00, 0xb3, 0xa2, 0xe5, 0x07, 0xc1, 0x94, 0x8b, 0x68, 0x76, 0x25, 0x24, 0xfc, 0xf4, 0x04, + 0xeb, 0x01, 0xc7, 0x87, 0x9e, 0xec, 0x99, 0x09, 0x62, 0xba, 0xea, 0x35, 0xa3, 0x66, 0xd6, 0x83, + 0x9e, 0xd5, 0x69, 0x1e, 0x84, 0x55, 0x1a, 0xa4, 0xe2, 0x60, 0xd2, 0x48, 0x4c, 0xa3, 0x52, 0x5d, + 0xc5, 0xab, 0x8d, 0x4a, 0x95, 0x62, 0xda, 0xa8, 0x54, 0x5b, 0xb8, 0xb5, 0xbb, 0x39, 0x3f, 0xe8, + 0xb3, 0xdb, 0x9e, 0xf1, 0xdd, 0xc6, 0x42, 0xaa, 0xa6, 0x77, 0xa3, 0xd9, 0x7d, 0x7a, 0x21, 0xc6, + 0xf9, 0xa5, 0x03, 0xad, 0x95, 0x37, 0xcb, 0xcd, 0x17, 0x2f, 0xf3, 0xcf, 0xc1, 0xb7, 0x57, 0x92, + 0xff, 0xf6, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xeb, 0x46, 0x15, 0xcf, 0xb5, 0x0a, 0x00, 0x00, } diff --git a/protocol/protobuf/chat_identity.pb.go b/protocol/protobuf/chat_identity.pb.go index 64f5c69b0..fc59644f6 100644 --- a/protocol/protobuf/chat_identity.pb.go +++ b/protocol/protobuf/chat_identity.pb.go @@ -1,24 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: chat_identity.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // SourceType are the predefined types of image source allowed type IdentityImage_SourceType int32 @@ -34,53 +34,28 @@ const ( IdentityImage_ENS_AVATAR IdentityImage_SourceType = 2 ) -// Enum value maps for IdentityImage_SourceType. -var ( - IdentityImage_SourceType_name = map[int32]string{ - 0: "UNKNOWN_SOURCE_TYPE", - 1: "RAW_PAYLOAD", - 2: "ENS_AVATAR", - } - IdentityImage_SourceType_value = map[string]int32{ - "UNKNOWN_SOURCE_TYPE": 0, - "RAW_PAYLOAD": 1, - "ENS_AVATAR": 2, - } -) +var IdentityImage_SourceType_name = map[int32]string{ + 0: "UNKNOWN_SOURCE_TYPE", + 1: "RAW_PAYLOAD", + 2: "ENS_AVATAR", +} -func (x IdentityImage_SourceType) Enum() *IdentityImage_SourceType { - p := new(IdentityImage_SourceType) - *p = x - return p +var IdentityImage_SourceType_value = map[string]int32{ + "UNKNOWN_SOURCE_TYPE": 0, + "RAW_PAYLOAD": 1, + "ENS_AVATAR": 2, } func (x IdentityImage_SourceType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(IdentityImage_SourceType_name, int32(x)) } -func (IdentityImage_SourceType) Descriptor() protoreflect.EnumDescriptor { - return file_chat_identity_proto_enumTypes[0].Descriptor() -} - -func (IdentityImage_SourceType) Type() protoreflect.EnumType { - return &file_chat_identity_proto_enumTypes[0] -} - -func (x IdentityImage_SourceType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use IdentityImage_SourceType.Descriptor instead. func (IdentityImage_SourceType) EnumDescriptor() ([]byte, []int) { - return file_chat_identity_proto_rawDescGZIP(), []int{1, 0} + return fileDescriptor_7a652489000a5879, []int{1, 0} } // ChatIdentity represents the user defined identity associated with their public chat key type ChatIdentity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Lamport timestamp of the message Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` // ens_name is the valid ENS name associated with the chat key @@ -99,116 +74,108 @@ type ChatIdentity struct { // 1 - no messages FirstMessageTimestamp uint32 `protobuf:"varint,9,opt,name=first_message_timestamp,json=firstMessageTimestamp,proto3" json:"first_message_timestamp,omitempty"` ProfileShowcase *ProfileShowcase `protobuf:"bytes,10,opt,name=profile_showcase,json=profileShowcase,proto3" json:"profile_showcase,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ChatIdentity) Reset() { - *x = ChatIdentity{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_identity_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ChatIdentity) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ChatIdentity) ProtoMessage() {} - -func (x *ChatIdentity) ProtoReflect() protoreflect.Message { - mi := &file_chat_identity_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ChatIdentity.ProtoReflect.Descriptor instead. +func (m *ChatIdentity) Reset() { *m = ChatIdentity{} } +func (m *ChatIdentity) String() string { return proto.CompactTextString(m) } +func (*ChatIdentity) ProtoMessage() {} func (*ChatIdentity) Descriptor() ([]byte, []int) { - return file_chat_identity_proto_rawDescGZIP(), []int{0} + return fileDescriptor_7a652489000a5879, []int{0} } -func (x *ChatIdentity) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *ChatIdentity) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChatIdentity.Unmarshal(m, b) +} +func (m *ChatIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChatIdentity.Marshal(b, m, deterministic) +} +func (m *ChatIdentity) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChatIdentity.Merge(m, src) +} +func (m *ChatIdentity) XXX_Size() int { + return xxx_messageInfo_ChatIdentity.Size(m) +} +func (m *ChatIdentity) XXX_DiscardUnknown() { + xxx_messageInfo_ChatIdentity.DiscardUnknown(m) +} + +var xxx_messageInfo_ChatIdentity proto.InternalMessageInfo + +func (m *ChatIdentity) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *ChatIdentity) GetEnsName() string { - if x != nil { - return x.EnsName +func (m *ChatIdentity) GetEnsName() string { + if m != nil { + return m.EnsName } return "" } -func (x *ChatIdentity) GetImages() map[string]*IdentityImage { - if x != nil { - return x.Images +func (m *ChatIdentity) GetImages() map[string]*IdentityImage { + if m != nil { + return m.Images } return nil } -func (x *ChatIdentity) GetDisplayName() string { - if x != nil { - return x.DisplayName +func (m *ChatIdentity) GetDisplayName() string { + if m != nil { + return m.DisplayName } return "" } -func (x *ChatIdentity) GetDescription() string { - if x != nil { - return x.Description +func (m *ChatIdentity) GetDescription() string { + if m != nil { + return m.Description } return "" } -func (x *ChatIdentity) GetColor() string { - if x != nil { - return x.Color +func (m *ChatIdentity) GetColor() string { + if m != nil { + return m.Color } return "" } -func (x *ChatIdentity) GetEmoji() string { - if x != nil { - return x.Emoji +func (m *ChatIdentity) GetEmoji() string { + if m != nil { + return m.Emoji } return "" } -func (x *ChatIdentity) GetSocialLinks() []*SocialLink { - if x != nil { - return x.SocialLinks +func (m *ChatIdentity) GetSocialLinks() []*SocialLink { + if m != nil { + return m.SocialLinks } return nil } -func (x *ChatIdentity) GetFirstMessageTimestamp() uint32 { - if x != nil { - return x.FirstMessageTimestamp +func (m *ChatIdentity) GetFirstMessageTimestamp() uint32 { + if m != nil { + return m.FirstMessageTimestamp } return 0 } -func (x *ChatIdentity) GetProfileShowcase() *ProfileShowcase { - if x != nil { - return x.ProfileShowcase +func (m *ChatIdentity) GetProfileShowcase() *ProfileShowcase { + if m != nil { + return m.ProfileShowcase } return nil } // ProfileImage represents data associated with a user's profile image type IdentityImage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // payload is a context based payload for the profile image data, // context is determined by the `source_type` Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` @@ -219,297 +186,168 @@ type IdentityImage struct { // encryption_keys is a list of encrypted keys that can be used to decrypted an encrypted payload EncryptionKeys [][]byte `protobuf:"bytes,4,rep,name=encryption_keys,json=encryptionKeys,proto3" json:"encryption_keys,omitempty"` // encrypted signals the encryption state of the payload, default is false. - Encrypted bool `protobuf:"varint,5,opt,name=encrypted,proto3" json:"encrypted,omitempty"` + Encrypted bool `protobuf:"varint,5,opt,name=encrypted,proto3" json:"encrypted,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *IdentityImage) Reset() { - *x = IdentityImage{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_identity_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IdentityImage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IdentityImage) ProtoMessage() {} - -func (x *IdentityImage) ProtoReflect() protoreflect.Message { - mi := &file_chat_identity_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IdentityImage.ProtoReflect.Descriptor instead. +func (m *IdentityImage) Reset() { *m = IdentityImage{} } +func (m *IdentityImage) String() string { return proto.CompactTextString(m) } +func (*IdentityImage) ProtoMessage() {} func (*IdentityImage) Descriptor() ([]byte, []int) { - return file_chat_identity_proto_rawDescGZIP(), []int{1} + return fileDescriptor_7a652489000a5879, []int{1} } -func (x *IdentityImage) GetPayload() []byte { - if x != nil { - return x.Payload +func (m *IdentityImage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IdentityImage.Unmarshal(m, b) +} +func (m *IdentityImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IdentityImage.Marshal(b, m, deterministic) +} +func (m *IdentityImage) XXX_Merge(src proto.Message) { + xxx_messageInfo_IdentityImage.Merge(m, src) +} +func (m *IdentityImage) XXX_Size() int { + return xxx_messageInfo_IdentityImage.Size(m) +} +func (m *IdentityImage) XXX_DiscardUnknown() { + xxx_messageInfo_IdentityImage.DiscardUnknown(m) +} + +var xxx_messageInfo_IdentityImage proto.InternalMessageInfo + +func (m *IdentityImage) GetPayload() []byte { + if m != nil { + return m.Payload } return nil } -func (x *IdentityImage) GetSourceType() IdentityImage_SourceType { - if x != nil { - return x.SourceType +func (m *IdentityImage) GetSourceType() IdentityImage_SourceType { + if m != nil { + return m.SourceType } return IdentityImage_UNKNOWN_SOURCE_TYPE } -func (x *IdentityImage) GetImageFormat() ImageFormat { - if x != nil { - return x.ImageFormat +func (m *IdentityImage) GetImageFormat() ImageFormat { + if m != nil { + return m.ImageFormat } return ImageFormat_UNKNOWN_IMAGE_FORMAT } -func (x *IdentityImage) GetEncryptionKeys() [][]byte { - if x != nil { - return x.EncryptionKeys +func (m *IdentityImage) GetEncryptionKeys() [][]byte { + if m != nil { + return m.EncryptionKeys } return nil } -func (x *IdentityImage) GetEncrypted() bool { - if x != nil { - return x.Encrypted +func (m *IdentityImage) GetEncrypted() bool { + if m != nil { + return m.Encrypted } return false } // SocialLinks represents social link assosiated with given chat identity (personal/community) type SocialLink struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SocialLink) Reset() { - *x = SocialLink{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_identity_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SocialLink) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SocialLink) ProtoMessage() {} - -func (x *SocialLink) ProtoReflect() protoreflect.Message { - mi := &file_chat_identity_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SocialLink.ProtoReflect.Descriptor instead. +func (m *SocialLink) Reset() { *m = SocialLink{} } +func (m *SocialLink) String() string { return proto.CompactTextString(m) } +func (*SocialLink) ProtoMessage() {} func (*SocialLink) Descriptor() ([]byte, []int) { - return file_chat_identity_proto_rawDescGZIP(), []int{2} + return fileDescriptor_7a652489000a5879, []int{2} } -func (x *SocialLink) GetText() string { - if x != nil { - return x.Text +func (m *SocialLink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SocialLink.Unmarshal(m, b) +} +func (m *SocialLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SocialLink.Marshal(b, m, deterministic) +} +func (m *SocialLink) XXX_Merge(src proto.Message) { + xxx_messageInfo_SocialLink.Merge(m, src) +} +func (m *SocialLink) XXX_Size() int { + return xxx_messageInfo_SocialLink.Size(m) +} +func (m *SocialLink) XXX_DiscardUnknown() { + xxx_messageInfo_SocialLink.DiscardUnknown(m) +} + +var xxx_messageInfo_SocialLink proto.InternalMessageInfo + +func (m *SocialLink) GetText() string { + if m != nil { + return m.Text } return "" } -func (x *SocialLink) GetUrl() string { - if x != nil { - return x.Url +func (m *SocialLink) GetUrl() string { + if m != nil { + return m.Url } return "" } -var File_chat_identity_proto protoreflect.FileDescriptor - -var file_chat_identity_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, - 0x0b, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x70, 0x72, - 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf7, 0x03, 0x0a, 0x0c, 0x43, 0x68, 0x61, 0x74, 0x49, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x19, 0x0a, 0x08, 0x65, - 0x6e, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, - 0x6e, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x43, 0x68, 0x61, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x49, - 0x6d, 0x61, 0x67, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x69, 0x6d, 0x61, 0x67, - 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, - 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x14, 0x0a, - 0x05, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, - 0x6f, 0x6a, 0x69, 0x12, 0x37, 0x0a, 0x0c, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x5f, 0x6c, 0x69, - 0x6e, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x52, - 0x0b, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x12, 0x36, 0x0a, 0x17, - 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x15, 0x66, - 0x69, 0x72, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x12, 0x44, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, - 0x73, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, - 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x1a, 0x52, 0x0a, 0x0b, 0x49, 0x6d, - 0x61, 0x67, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2d, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x6d, - 0x61, 0x67, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb7, - 0x02, 0x0a, 0x0d, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x6d, 0x61, 0x67, 0x65, - 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x43, 0x0a, 0x0b, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x38, 0x0a, 0x0c, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x0b, 0x69, 0x6d, - 0x61, 0x67, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6e, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x0c, 0x52, 0x0e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, - 0x79, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, - 0x22, 0x46, 0x0a, 0x0a, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, - 0x0a, 0x13, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x41, 0x57, 0x5f, 0x50, - 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x45, 0x4e, 0x53, 0x5f, - 0x41, 0x56, 0x41, 0x54, 0x41, 0x52, 0x10, 0x02, 0x22, 0x32, 0x0a, 0x0a, 0x53, 0x6f, 0x63, 0x69, - 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, - 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x42, 0x0d, 0x5a, 0x0b, - 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, +func init() { + proto.RegisterEnum("protobuf.IdentityImage_SourceType", IdentityImage_SourceType_name, IdentityImage_SourceType_value) + proto.RegisterType((*ChatIdentity)(nil), "protobuf.ChatIdentity") + proto.RegisterMapType((map[string]*IdentityImage)(nil), "protobuf.ChatIdentity.ImagesEntry") + proto.RegisterType((*IdentityImage)(nil), "protobuf.IdentityImage") + proto.RegisterType((*SocialLink)(nil), "protobuf.SocialLink") } -var ( - file_chat_identity_proto_rawDescOnce sync.Once - file_chat_identity_proto_rawDescData = file_chat_identity_proto_rawDesc -) - -func file_chat_identity_proto_rawDescGZIP() []byte { - file_chat_identity_proto_rawDescOnce.Do(func() { - file_chat_identity_proto_rawDescData = protoimpl.X.CompressGZIP(file_chat_identity_proto_rawDescData) - }) - return file_chat_identity_proto_rawDescData +func init() { + proto.RegisterFile("chat_identity.proto", fileDescriptor_7a652489000a5879) } -var file_chat_identity_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_chat_identity_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_chat_identity_proto_goTypes = []interface{}{ - (IdentityImage_SourceType)(0), // 0: protobuf.IdentityImage.SourceType - (*ChatIdentity)(nil), // 1: protobuf.ChatIdentity - (*IdentityImage)(nil), // 2: protobuf.IdentityImage - (*SocialLink)(nil), // 3: protobuf.SocialLink - nil, // 4: protobuf.ChatIdentity.ImagesEntry - (*ProfileShowcase)(nil), // 5: protobuf.ProfileShowcase - (ImageFormat)(0), // 6: protobuf.ImageFormat -} -var file_chat_identity_proto_depIdxs = []int32{ - 4, // 0: protobuf.ChatIdentity.images:type_name -> protobuf.ChatIdentity.ImagesEntry - 3, // 1: protobuf.ChatIdentity.social_links:type_name -> protobuf.SocialLink - 5, // 2: protobuf.ChatIdentity.profile_showcase:type_name -> protobuf.ProfileShowcase - 0, // 3: protobuf.IdentityImage.source_type:type_name -> protobuf.IdentityImage.SourceType - 6, // 4: protobuf.IdentityImage.image_format:type_name -> protobuf.ImageFormat - 2, // 5: protobuf.ChatIdentity.ImagesEntry.value:type_name -> protobuf.IdentityImage - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_chat_identity_proto_init() } -func file_chat_identity_proto_init() { - if File_chat_identity_proto != nil { - return - } - file_enums_proto_init() - file_profile_showcase_proto_init() - if !protoimpl.UnsafeEnabled { - file_chat_identity_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChatIdentity); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_identity_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IdentityImage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_identity_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SocialLink); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_chat_identity_proto_rawDesc, - NumEnums: 1, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_chat_identity_proto_goTypes, - DependencyIndexes: file_chat_identity_proto_depIdxs, - EnumInfos: file_chat_identity_proto_enumTypes, - MessageInfos: file_chat_identity_proto_msgTypes, - }.Build() - File_chat_identity_proto = out.File - file_chat_identity_proto_rawDesc = nil - file_chat_identity_proto_goTypes = nil - file_chat_identity_proto_depIdxs = nil +var fileDescriptor_7a652489000a5879 = []byte{ + // 568 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x53, 0x51, 0x4f, 0xdb, 0x3c, + 0x14, 0xfd, 0xd2, 0x16, 0x68, 0xaf, 0x0b, 0x54, 0x06, 0x3e, 0x0c, 0xda, 0x43, 0xd6, 0x97, 0xf5, + 0x65, 0x99, 0xd4, 0x49, 0x1b, 0x62, 0x4f, 0x19, 0x14, 0x09, 0xc1, 0x0a, 0x72, 0xcb, 0x10, 0x7b, + 0xb1, 0x4c, 0xea, 0x82, 0xd7, 0x24, 0x8e, 0x62, 0x77, 0x5b, 0x7e, 0xd9, 0x7e, 0xda, 0x5e, 0xa7, + 0x38, 0x09, 0x69, 0xf7, 0xd4, 0x7b, 0xcf, 0x39, 0x3e, 0xbe, 0xbd, 0xc7, 0x81, 0xbd, 0xe0, 0x99, + 0x1b, 0x26, 0x67, 0x22, 0x36, 0xd2, 0x64, 0x5e, 0x92, 0x2a, 0xa3, 0x70, 0xdb, 0xfe, 0x3c, 0x2e, + 0xe7, 0xc7, 0x48, 0xc4, 0xcb, 0x48, 0x17, 0xf0, 0xf1, 0xff, 0x49, 0xaa, 0xe6, 0x32, 0x14, 0x4c, + 0x3f, 0xab, 0x9f, 0x01, 0xd7, 0xa2, 0xc0, 0xfb, 0x7f, 0x9a, 0xd0, 0x3d, 0x7b, 0xe6, 0xe6, 0xb2, + 0x74, 0xc1, 0xfb, 0xb0, 0x11, 0x84, 0x2a, 0x58, 0x10, 0xc7, 0x75, 0x06, 0x2d, 0x5a, 0x34, 0xf8, + 0x08, 0xda, 0x22, 0xd6, 0x2c, 0xe6, 0x91, 0x20, 0x0d, 0xd7, 0x19, 0x74, 0xe8, 0x96, 0x88, 0xf5, + 0x98, 0x47, 0x02, 0x9f, 0xc2, 0xa6, 0x8c, 0xf8, 0x93, 0xd0, 0xa4, 0xe9, 0x36, 0x07, 0x68, 0xd8, + 0xf7, 0xaa, 0x09, 0xbc, 0x55, 0x63, 0xef, 0xd2, 0x8a, 0x46, 0xb1, 0x49, 0x33, 0x5a, 0x9e, 0xc0, + 0xaf, 0xa1, 0x3b, 0x93, 0x3a, 0x09, 0x79, 0x56, 0x58, 0xb7, 0xac, 0x35, 0x2a, 0x31, 0x6b, 0xef, + 0x02, 0x9a, 0x09, 0x1d, 0xa4, 0x32, 0x31, 0x52, 0xc5, 0x64, 0xa3, 0x54, 0xd4, 0x90, 0x9d, 0x58, + 0x85, 0x2a, 0x25, 0x9b, 0x96, 0x2b, 0x9a, 0x1c, 0x15, 0x91, 0xfa, 0x2e, 0xc9, 0x56, 0x81, 0xda, + 0x06, 0x7f, 0x84, 0xae, 0x56, 0x81, 0xe4, 0x21, 0x0b, 0x65, 0xbc, 0xd0, 0xa4, 0x6d, 0x47, 0xde, + 0xaf, 0x47, 0x9e, 0x58, 0xf6, 0x5a, 0xc6, 0x0b, 0x8a, 0xf4, 0x4b, 0xad, 0xf1, 0x07, 0x38, 0x9c, + 0xcb, 0x54, 0x1b, 0x16, 0x09, 0xad, 0xf9, 0x93, 0x60, 0x46, 0x46, 0x42, 0x1b, 0x1e, 0x25, 0xa4, + 0xe3, 0x3a, 0x83, 0x6d, 0x7a, 0x60, 0xe9, 0x2f, 0x05, 0x3b, 0xad, 0x48, 0x7c, 0x0e, 0xbd, 0x7f, + 0x37, 0x4f, 0xc0, 0x75, 0x06, 0x68, 0x78, 0x54, 0x5f, 0x7a, 0x5b, 0x28, 0x26, 0xa5, 0x80, 0xee, + 0x26, 0xeb, 0xc0, 0x31, 0x05, 0xb4, 0xb2, 0x3e, 0xdc, 0x83, 0xe6, 0x42, 0x64, 0x36, 0xa1, 0x0e, + 0xcd, 0x4b, 0xfc, 0x16, 0x36, 0x7e, 0xf0, 0x70, 0x59, 0x84, 0x83, 0x86, 0x87, 0xb5, 0x77, 0xb5, + 0x7f, 0x7b, 0x9e, 0x16, 0xaa, 0xd3, 0xc6, 0x89, 0xd3, 0xff, 0xdd, 0x80, 0xed, 0x35, 0x12, 0x13, + 0xd8, 0x4a, 0x78, 0x16, 0x2a, 0x3e, 0xb3, 0xd6, 0x5d, 0x5a, 0xb5, 0xf8, 0x0c, 0x90, 0x56, 0xcb, + 0x34, 0x10, 0xcc, 0x64, 0x49, 0x71, 0xc9, 0xce, 0x6a, 0xd0, 0x6b, 0x3e, 0xde, 0xc4, 0x4a, 0xa7, + 0x59, 0x22, 0x28, 0xe8, 0x97, 0x1a, 0x9f, 0x40, 0xd7, 0xc6, 0xce, 0xe6, 0x2a, 0x8d, 0xb8, 0x21, + 0x4d, 0xeb, 0x72, 0xb0, 0xe2, 0x92, 0xb3, 0x17, 0x96, 0xa4, 0x48, 0xd6, 0x0d, 0x7e, 0x03, 0xbb, + 0x22, 0x0e, 0xd2, 0xcc, 0xe6, 0xcd, 0x16, 0x22, 0xd3, 0xa4, 0xe5, 0x36, 0x07, 0x5d, 0xba, 0x53, + 0xc3, 0x57, 0x22, 0xd3, 0xf8, 0x15, 0x74, 0x4a, 0x44, 0xcc, 0xec, 0x53, 0x69, 0xd3, 0x1a, 0xe8, + 0x5f, 0x00, 0xd4, 0xa3, 0xe1, 0x43, 0xd8, 0xbb, 0x1b, 0x5f, 0x8d, 0x6f, 0xee, 0xc7, 0x6c, 0x72, + 0x73, 0x47, 0xcf, 0x46, 0x6c, 0xfa, 0x70, 0x3b, 0xea, 0xfd, 0x87, 0x77, 0x01, 0x51, 0xff, 0x9e, + 0xdd, 0xfa, 0x0f, 0xd7, 0x37, 0xfe, 0x79, 0xcf, 0xc1, 0x3b, 0x00, 0xa3, 0xf1, 0x84, 0xf9, 0x5f, + 0xfd, 0xa9, 0x4f, 0x7b, 0x8d, 0xfe, 0x30, 0xf7, 0xa9, 0x9e, 0x06, 0xc6, 0xd0, 0x32, 0xe2, 0x97, + 0x29, 0xd3, 0xb0, 0x75, 0x1e, 0xd0, 0x32, 0x0d, 0xcb, 0x2f, 0x25, 0x2f, 0x3f, 0x6f, 0x7f, 0x43, + 0xde, 0xbb, 0x4f, 0xd5, 0x5f, 0x7d, 0xdc, 0xb4, 0xd5, 0xfb, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xf2, 0x9d, 0x33, 0x90, 0xc3, 0x03, 0x00, 0x00, } diff --git a/protocol/protobuf/chat_message.pb.go b/protocol/protobuf/chat_message.pb.go index c430b9f0f..b0f60bdc6 100644 --- a/protocol/protobuf/chat_message.pb.go +++ b/protocol/protobuf/chat_message.pb.go @@ -1,24 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: chat_message.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type AudioMessage_AudioType int32 @@ -28,45 +28,24 @@ const ( AudioMessage_AMR AudioMessage_AudioType = 2 ) -// Enum value maps for AudioMessage_AudioType. -var ( - AudioMessage_AudioType_name = map[int32]string{ - 0: "UNKNOWN_AUDIO_TYPE", - 1: "AAC", - 2: "AMR", - } - AudioMessage_AudioType_value = map[string]int32{ - "UNKNOWN_AUDIO_TYPE": 0, - "AAC": 1, - "AMR": 2, - } -) +var AudioMessage_AudioType_name = map[int32]string{ + 0: "UNKNOWN_AUDIO_TYPE", + 1: "AAC", + 2: "AMR", +} -func (x AudioMessage_AudioType) Enum() *AudioMessage_AudioType { - p := new(AudioMessage_AudioType) - *p = x - return p +var AudioMessage_AudioType_value = map[string]int32{ + "UNKNOWN_AUDIO_TYPE": 0, + "AAC": 1, + "AMR": 2, } func (x AudioMessage_AudioType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(AudioMessage_AudioType_name, int32(x)) } -func (AudioMessage_AudioType) Descriptor() protoreflect.EnumDescriptor { - return file_chat_message_proto_enumTypes[0].Descriptor() -} - -func (AudioMessage_AudioType) Type() protoreflect.EnumType { - return &file_chat_message_proto_enumTypes[0] -} - -func (x AudioMessage_AudioType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use AudioMessage_AudioType.Descriptor instead. func (AudioMessage_AudioType) EnumDescriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{2, 0} + return fileDescriptor_263952f55fd35689, []int{2, 0} } type UnfurledLink_LinkType int32 @@ -76,43 +55,22 @@ const ( UnfurledLink_IMAGE UnfurledLink_LinkType = 1 ) -// Enum value maps for UnfurledLink_LinkType. -var ( - UnfurledLink_LinkType_name = map[int32]string{ - 0: "LINK", - 1: "IMAGE", - } - UnfurledLink_LinkType_value = map[string]int32{ - "LINK": 0, - "IMAGE": 1, - } -) +var UnfurledLink_LinkType_name = map[int32]string{ + 0: "LINK", + 1: "IMAGE", +} -func (x UnfurledLink_LinkType) Enum() *UnfurledLink_LinkType { - p := new(UnfurledLink_LinkType) - *p = x - return p +var UnfurledLink_LinkType_value = map[string]int32{ + "LINK": 0, + "IMAGE": 1, } func (x UnfurledLink_LinkType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(UnfurledLink_LinkType_name, int32(x)) } -func (UnfurledLink_LinkType) Descriptor() protoreflect.EnumDescriptor { - return file_chat_message_proto_enumTypes[1].Descriptor() -} - -func (UnfurledLink_LinkType) Type() protoreflect.EnumType { - return &file_chat_message_proto_enumTypes[1] -} - -func (x UnfurledLink_LinkType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use UnfurledLink_LinkType.Descriptor instead. func (UnfurledLink_LinkType) EnumDescriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{12, 0} + return fileDescriptor_263952f55fd35689, []int{12, 0} } type ChatMessage_ContentType int32 @@ -145,1503 +103,1314 @@ const ( ChatMessage_BRIDGE_MESSAGE ChatMessage_ContentType = 18 ) -// Enum value maps for ChatMessage_ContentType. -var ( - ChatMessage_ContentType_name = map[int32]string{ - 0: "UNKNOWN_CONTENT_TYPE", - 1: "TEXT_PLAIN", - 2: "STICKER", - 3: "STATUS", - 4: "EMOJI", - 5: "TRANSACTION_COMMAND", - 6: "SYSTEM_MESSAGE_CONTENT_PRIVATE_GROUP", - 7: "IMAGE", - 8: "AUDIO", - 9: "COMMUNITY", - 10: "SYSTEM_MESSAGE_GAP", - 11: "CONTACT_REQUEST", - 12: "DISCORD_MESSAGE", - 13: "IDENTITY_VERIFICATION", - 14: "SYSTEM_MESSAGE_PINNED_MESSAGE", - 15: "SYSTEM_MESSAGE_MUTUAL_EVENT_SENT", - 16: "SYSTEM_MESSAGE_MUTUAL_EVENT_ACCEPTED", - 17: "SYSTEM_MESSAGE_MUTUAL_EVENT_REMOVED", - 18: "BRIDGE_MESSAGE", - } - ChatMessage_ContentType_value = map[string]int32{ - "UNKNOWN_CONTENT_TYPE": 0, - "TEXT_PLAIN": 1, - "STICKER": 2, - "STATUS": 3, - "EMOJI": 4, - "TRANSACTION_COMMAND": 5, - "SYSTEM_MESSAGE_CONTENT_PRIVATE_GROUP": 6, - "IMAGE": 7, - "AUDIO": 8, - "COMMUNITY": 9, - "SYSTEM_MESSAGE_GAP": 10, - "CONTACT_REQUEST": 11, - "DISCORD_MESSAGE": 12, - "IDENTITY_VERIFICATION": 13, - "SYSTEM_MESSAGE_PINNED_MESSAGE": 14, - "SYSTEM_MESSAGE_MUTUAL_EVENT_SENT": 15, - "SYSTEM_MESSAGE_MUTUAL_EVENT_ACCEPTED": 16, - "SYSTEM_MESSAGE_MUTUAL_EVENT_REMOVED": 17, - "BRIDGE_MESSAGE": 18, - } -) +var ChatMessage_ContentType_name = map[int32]string{ + 0: "UNKNOWN_CONTENT_TYPE", + 1: "TEXT_PLAIN", + 2: "STICKER", + 3: "STATUS", + 4: "EMOJI", + 5: "TRANSACTION_COMMAND", + 6: "SYSTEM_MESSAGE_CONTENT_PRIVATE_GROUP", + 7: "IMAGE", + 8: "AUDIO", + 9: "COMMUNITY", + 10: "SYSTEM_MESSAGE_GAP", + 11: "CONTACT_REQUEST", + 12: "DISCORD_MESSAGE", + 13: "IDENTITY_VERIFICATION", + 14: "SYSTEM_MESSAGE_PINNED_MESSAGE", + 15: "SYSTEM_MESSAGE_MUTUAL_EVENT_SENT", + 16: "SYSTEM_MESSAGE_MUTUAL_EVENT_ACCEPTED", + 17: "SYSTEM_MESSAGE_MUTUAL_EVENT_REMOVED", + 18: "BRIDGE_MESSAGE", +} -func (x ChatMessage_ContentType) Enum() *ChatMessage_ContentType { - p := new(ChatMessage_ContentType) - *p = x - return p +var ChatMessage_ContentType_value = map[string]int32{ + "UNKNOWN_CONTENT_TYPE": 0, + "TEXT_PLAIN": 1, + "STICKER": 2, + "STATUS": 3, + "EMOJI": 4, + "TRANSACTION_COMMAND": 5, + "SYSTEM_MESSAGE_CONTENT_PRIVATE_GROUP": 6, + "IMAGE": 7, + "AUDIO": 8, + "COMMUNITY": 9, + "SYSTEM_MESSAGE_GAP": 10, + "CONTACT_REQUEST": 11, + "DISCORD_MESSAGE": 12, + "IDENTITY_VERIFICATION": 13, + "SYSTEM_MESSAGE_PINNED_MESSAGE": 14, + "SYSTEM_MESSAGE_MUTUAL_EVENT_SENT": 15, + "SYSTEM_MESSAGE_MUTUAL_EVENT_ACCEPTED": 16, + "SYSTEM_MESSAGE_MUTUAL_EVENT_REMOVED": 17, + "BRIDGE_MESSAGE": 18, } func (x ChatMessage_ContentType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(ChatMessage_ContentType_name, int32(x)) } -func (ChatMessage_ContentType) Descriptor() protoreflect.EnumDescriptor { - return file_chat_message_proto_enumTypes[2].Descriptor() -} - -func (ChatMessage_ContentType) Type() protoreflect.EnumType { - return &file_chat_message_proto_enumTypes[2] -} - -func (x ChatMessage_ContentType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ChatMessage_ContentType.Descriptor instead. func (ChatMessage_ContentType) EnumDescriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{18, 0} + return fileDescriptor_263952f55fd35689, []int{18, 0} } type StickerMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` - Pack int32 `protobuf:"varint,2,opt,name=pack,proto3" json:"pack,omitempty"` + Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + Pack int32 `protobuf:"varint,2,opt,name=pack,proto3" json:"pack,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *StickerMessage) Reset() { - *x = StickerMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_message_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StickerMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StickerMessage) ProtoMessage() {} - -func (x *StickerMessage) ProtoReflect() protoreflect.Message { - mi := &file_chat_message_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StickerMessage.ProtoReflect.Descriptor instead. +func (m *StickerMessage) Reset() { *m = StickerMessage{} } +func (m *StickerMessage) String() string { return proto.CompactTextString(m) } +func (*StickerMessage) ProtoMessage() {} func (*StickerMessage) Descriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{0} + return fileDescriptor_263952f55fd35689, []int{0} } -func (x *StickerMessage) GetHash() string { - if x != nil { - return x.Hash +func (m *StickerMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StickerMessage.Unmarshal(m, b) +} +func (m *StickerMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StickerMessage.Marshal(b, m, deterministic) +} +func (m *StickerMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_StickerMessage.Merge(m, src) +} +func (m *StickerMessage) XXX_Size() int { + return xxx_messageInfo_StickerMessage.Size(m) +} +func (m *StickerMessage) XXX_DiscardUnknown() { + xxx_messageInfo_StickerMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_StickerMessage proto.InternalMessageInfo + +func (m *StickerMessage) GetHash() string { + if m != nil { + return m.Hash } return "" } -func (x *StickerMessage) GetPack() int32 { - if x != nil { - return x.Pack +func (m *StickerMessage) GetPack() int32 { + if m != nil { + return m.Pack } return 0 } type ImageMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Format ImageFormat `protobuf:"varint,2,opt,name=format,proto3,enum=protobuf.ImageFormat" json:"format,omitempty"` - AlbumId string `protobuf:"bytes,3,opt,name=album_id,json=albumId,proto3" json:"album_id,omitempty"` - Width uint32 `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"` - Height uint32 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"` - AlbumImagesCount uint32 `protobuf:"varint,6,opt,name=album_images_count,json=albumImagesCount,proto3" json:"album_images_count,omitempty"` + Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Format ImageFormat `protobuf:"varint,2,opt,name=format,proto3,enum=protobuf.ImageFormat" json:"format,omitempty"` + AlbumId string `protobuf:"bytes,3,opt,name=album_id,json=albumId,proto3" json:"album_id,omitempty"` + Width uint32 `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"` + Height uint32 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"` + AlbumImagesCount uint32 `protobuf:"varint,6,opt,name=album_images_count,json=albumImagesCount,proto3" json:"album_images_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ImageMessage) Reset() { - *x = ImageMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_message_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ImageMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ImageMessage) ProtoMessage() {} - -func (x *ImageMessage) ProtoReflect() protoreflect.Message { - mi := &file_chat_message_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ImageMessage.ProtoReflect.Descriptor instead. +func (m *ImageMessage) Reset() { *m = ImageMessage{} } +func (m *ImageMessage) String() string { return proto.CompactTextString(m) } +func (*ImageMessage) ProtoMessage() {} func (*ImageMessage) Descriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{1} + return fileDescriptor_263952f55fd35689, []int{1} } -func (x *ImageMessage) GetPayload() []byte { - if x != nil { - return x.Payload - } - return nil +func (m *ImageMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ImageMessage.Unmarshal(m, b) } - -func (x *ImageMessage) GetFormat() ImageFormat { - if x != nil { - return x.Format - } - return ImageFormat_UNKNOWN_IMAGE_FORMAT -} - -func (x *ImageMessage) GetAlbumId() string { - if x != nil { - return x.AlbumId - } - return "" -} - -func (x *ImageMessage) GetWidth() uint32 { - if x != nil { - return x.Width - } - return 0 -} - -func (x *ImageMessage) GetHeight() uint32 { - if x != nil { - return x.Height - } - return 0 -} - -func (x *ImageMessage) GetAlbumImagesCount() uint32 { - if x != nil { - return x.AlbumImagesCount - } - return 0 -} - -type AudioMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Type AudioMessage_AudioType `protobuf:"varint,2,opt,name=type,proto3,enum=protobuf.AudioMessage_AudioType" json:"type,omitempty"` - DurationMs uint64 `protobuf:"varint,3,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"` -} - -func (x *AudioMessage) Reset() { - *x = AudioMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_message_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AudioMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AudioMessage) ProtoMessage() {} - -func (x *AudioMessage) ProtoReflect() protoreflect.Message { - mi := &file_chat_message_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AudioMessage.ProtoReflect.Descriptor instead. -func (*AudioMessage) Descriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{2} -} - -func (x *AudioMessage) GetPayload() []byte { - if x != nil { - return x.Payload - } - return nil -} - -func (x *AudioMessage) GetType() AudioMessage_AudioType { - if x != nil { - return x.Type - } - return AudioMessage_UNKNOWN_AUDIO_TYPE -} - -func (x *AudioMessage) GetDurationMs() uint64 { - if x != nil { - return x.DurationMs - } - return 0 -} - -type EditMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - // Text of the message - Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` - ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` - MessageId string `protobuf:"bytes,4,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` - // Grant for community edit messages - // - // Deprecated: Marked as deprecated in chat_message.proto. - Grant []byte `protobuf:"bytes,5,opt,name=grant,proto3" json:"grant,omitempty"` - // The type of message (public/one-to-one/private-group-chat) - MessageType MessageType `protobuf:"varint,6,opt,name=message_type,json=messageType,proto3,enum=protobuf.MessageType" json:"message_type,omitempty"` - ContentType ChatMessage_ContentType `protobuf:"varint,7,opt,name=content_type,json=contentType,proto3,enum=protobuf.ChatMessage_ContentType" json:"content_type,omitempty"` - UnfurledLinks []*UnfurledLink `protobuf:"bytes,8,rep,name=unfurled_links,json=unfurledLinks,proto3" json:"unfurled_links,omitempty"` - UnfurledStatusLinks *UnfurledStatusLinks `protobuf:"bytes,9,opt,name=unfurled_status_links,json=unfurledStatusLinks,proto3" json:"unfurled_status_links,omitempty"` -} - -func (x *EditMessage) Reset() { - *x = EditMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_message_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EditMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EditMessage) ProtoMessage() {} - -func (x *EditMessage) ProtoReflect() protoreflect.Message { - mi := &file_chat_message_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EditMessage.ProtoReflect.Descriptor instead. -func (*EditMessage) Descriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{3} -} - -func (x *EditMessage) GetClock() uint64 { - if x != nil { - return x.Clock - } - return 0 -} - -func (x *EditMessage) GetText() string { - if x != nil { - return x.Text - } - return "" -} - -func (x *EditMessage) GetChatId() string { - if x != nil { - return x.ChatId - } - return "" -} - -func (x *EditMessage) GetMessageId() string { - if x != nil { - return x.MessageId - } - return "" -} - -// Deprecated: Marked as deprecated in chat_message.proto. -func (x *EditMessage) GetGrant() []byte { - if x != nil { - return x.Grant - } - return nil -} - -func (x *EditMessage) GetMessageType() MessageType { - if x != nil { - return x.MessageType - } - return MessageType_UNKNOWN_MESSAGE_TYPE -} - -func (x *EditMessage) GetContentType() ChatMessage_ContentType { - if x != nil { - return x.ContentType - } - return ChatMessage_UNKNOWN_CONTENT_TYPE -} - -func (x *EditMessage) GetUnfurledLinks() []*UnfurledLink { - if x != nil { - return x.UnfurledLinks - } - return nil -} - -func (x *EditMessage) GetUnfurledStatusLinks() *UnfurledStatusLinks { - if x != nil { - return x.UnfurledStatusLinks - } - return nil -} - -type DeleteMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` - MessageId string `protobuf:"bytes,3,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` - // Grant for community delete messages - // - // Deprecated: Marked as deprecated in chat_message.proto. - Grant []byte `protobuf:"bytes,4,opt,name=grant,proto3" json:"grant,omitempty"` - // The type of message (public/one-to-one/private-group-chat) - MessageType MessageType `protobuf:"varint,5,opt,name=message_type,json=messageType,proto3,enum=protobuf.MessageType" json:"message_type,omitempty"` - DeletedBy string `protobuf:"bytes,6,opt,name=deleted_by,json=deletedBy,proto3" json:"deleted_by,omitempty"` -} - -func (x *DeleteMessage) Reset() { - *x = DeleteMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_message_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteMessage) ProtoMessage() {} - -func (x *DeleteMessage) ProtoReflect() protoreflect.Message { - mi := &file_chat_message_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteMessage.ProtoReflect.Descriptor instead. -func (*DeleteMessage) Descriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{4} -} - -func (x *DeleteMessage) GetClock() uint64 { - if x != nil { - return x.Clock - } - return 0 -} - -func (x *DeleteMessage) GetChatId() string { - if x != nil { - return x.ChatId - } - return "" -} - -func (x *DeleteMessage) GetMessageId() string { - if x != nil { - return x.MessageId - } - return "" -} - -// Deprecated: Marked as deprecated in chat_message.proto. -func (x *DeleteMessage) GetGrant() []byte { - if x != nil { - return x.Grant - } - return nil -} - -func (x *DeleteMessage) GetMessageType() MessageType { - if x != nil { - return x.MessageType - } - return MessageType_UNKNOWN_MESSAGE_TYPE -} - -func (x *DeleteMessage) GetDeletedBy() string { - if x != nil { - return x.DeletedBy - } - return "" -} - -type SyncDeleteForMeMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - MessageId string `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` -} - -func (x *SyncDeleteForMeMessage) Reset() { - *x = SyncDeleteForMeMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_message_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SyncDeleteForMeMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SyncDeleteForMeMessage) ProtoMessage() {} - -func (x *SyncDeleteForMeMessage) ProtoReflect() protoreflect.Message { - mi := &file_chat_message_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SyncDeleteForMeMessage.ProtoReflect.Descriptor instead. -func (*SyncDeleteForMeMessage) Descriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{5} -} - -func (x *SyncDeleteForMeMessage) GetClock() uint64 { - if x != nil { - return x.Clock - } - return 0 -} - -func (x *SyncDeleteForMeMessage) GetMessageId() string { - if x != nil { - return x.MessageId - } - return "" -} - -type DiscordMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - Timestamp string `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - TimestampEdited string `protobuf:"bytes,4,opt,name=timestampEdited,proto3" json:"timestampEdited,omitempty"` - Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` - Author *DiscordMessageAuthor `protobuf:"bytes,6,opt,name=author,proto3" json:"author,omitempty"` - Reference *DiscordMessageReference `protobuf:"bytes,7,opt,name=reference,proto3" json:"reference,omitempty"` - Attachments []*DiscordMessageAttachment `protobuf:"bytes,8,rep,name=attachments,proto3" json:"attachments,omitempty"` -} - -func (x *DiscordMessage) Reset() { - *x = DiscordMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_message_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DiscordMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DiscordMessage) ProtoMessage() {} - -func (x *DiscordMessage) ProtoReflect() protoreflect.Message { - mi := &file_chat_message_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DiscordMessage.ProtoReflect.Descriptor instead. -func (*DiscordMessage) Descriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{6} +func (m *ImageMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ImageMessage.Marshal(b, m, deterministic) } - -func (x *DiscordMessage) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *DiscordMessage) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *DiscordMessage) GetTimestamp() string { - if x != nil { - return x.Timestamp - } - return "" -} - -func (x *DiscordMessage) GetTimestampEdited() string { - if x != nil { - return x.TimestampEdited - } - return "" -} - -func (x *DiscordMessage) GetContent() string { - if x != nil { - return x.Content - } - return "" -} - -func (x *DiscordMessage) GetAuthor() *DiscordMessageAuthor { - if x != nil { - return x.Author - } - return nil +func (m *ImageMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_ImageMessage.Merge(m, src) } - -func (x *DiscordMessage) GetReference() *DiscordMessageReference { - if x != nil { - return x.Reference - } - return nil -} - -func (x *DiscordMessage) GetAttachments() []*DiscordMessageAttachment { - if x != nil { - return x.Attachments - } - return nil +func (m *ImageMessage) XXX_Size() int { + return xxx_messageInfo_ImageMessage.Size(m) } - -type DiscordMessageAuthor struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Discriminator string `protobuf:"bytes,3,opt,name=discriminator,proto3" json:"discriminator,omitempty"` - Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"` - AvatarUrl string `protobuf:"bytes,5,opt,name=avatarUrl,proto3" json:"avatarUrl,omitempty"` - AvatarImagePayload []byte `protobuf:"bytes,6,opt,name=avatarImagePayload,proto3" json:"avatarImagePayload,omitempty"` - LocalUrl string `protobuf:"bytes,7,opt,name=localUrl,proto3" json:"localUrl,omitempty"` +func (m *ImageMessage) XXX_DiscardUnknown() { + xxx_messageInfo_ImageMessage.DiscardUnknown(m) } -func (x *DiscordMessageAuthor) Reset() { - *x = DiscordMessageAuthor{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_message_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DiscordMessageAuthor) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DiscordMessageAuthor) ProtoMessage() {} - -func (x *DiscordMessageAuthor) ProtoReflect() protoreflect.Message { - mi := &file_chat_message_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DiscordMessageAuthor.ProtoReflect.Descriptor instead. -func (*DiscordMessageAuthor) Descriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{7} -} - -func (x *DiscordMessageAuthor) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *DiscordMessageAuthor) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *DiscordMessageAuthor) GetDiscriminator() string { - if x != nil { - return x.Discriminator - } - return "" -} - -func (x *DiscordMessageAuthor) GetNickname() string { - if x != nil { - return x.Nickname - } - return "" -} - -func (x *DiscordMessageAuthor) GetAvatarUrl() string { - if x != nil { - return x.AvatarUrl - } - return "" -} - -func (x *DiscordMessageAuthor) GetAvatarImagePayload() []byte { - if x != nil { - return x.AvatarImagePayload - } - return nil -} - -func (x *DiscordMessageAuthor) GetLocalUrl() string { - if x != nil { - return x.LocalUrl - } - return "" -} - -type DiscordMessageReference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MessageId string `protobuf:"bytes,1,opt,name=messageId,proto3" json:"messageId,omitempty"` - ChannelId string `protobuf:"bytes,2,opt,name=channelId,proto3" json:"channelId,omitempty"` - GuildId string `protobuf:"bytes,3,opt,name=guildId,proto3" json:"guildId,omitempty"` -} - -func (x *DiscordMessageReference) Reset() { - *x = DiscordMessageReference{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_message_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DiscordMessageReference) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DiscordMessageReference) ProtoMessage() {} - -func (x *DiscordMessageReference) ProtoReflect() protoreflect.Message { - mi := &file_chat_message_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DiscordMessageReference.ProtoReflect.Descriptor instead. -func (*DiscordMessageReference) Descriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{8} -} - -func (x *DiscordMessageReference) GetMessageId() string { - if x != nil { - return x.MessageId - } - return "" -} - -func (x *DiscordMessageReference) GetChannelId() string { - if x != nil { - return x.ChannelId - } - return "" -} - -func (x *DiscordMessageReference) GetGuildId() string { - if x != nil { - return x.GuildId - } - return "" -} - -type DiscordMessageAttachment struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - MessageId string `protobuf:"bytes,2,opt,name=messageId,proto3" json:"messageId,omitempty"` - Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` - FileName string `protobuf:"bytes,4,opt,name=fileName,proto3" json:"fileName,omitempty"` - FileSizeBytes uint64 `protobuf:"varint,5,opt,name=fileSizeBytes,proto3" json:"fileSizeBytes,omitempty"` - ContentType string `protobuf:"bytes,6,opt,name=contentType,proto3" json:"contentType,omitempty"` - Payload []byte `protobuf:"bytes,7,opt,name=payload,proto3" json:"payload,omitempty"` - LocalUrl string `protobuf:"bytes,8,opt,name=localUrl,proto3" json:"localUrl,omitempty"` -} - -func (x *DiscordMessageAttachment) Reset() { - *x = DiscordMessageAttachment{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_message_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DiscordMessageAttachment) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DiscordMessageAttachment) ProtoMessage() {} - -func (x *DiscordMessageAttachment) ProtoReflect() protoreflect.Message { - mi := &file_chat_message_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DiscordMessageAttachment.ProtoReflect.Descriptor instead. -func (*DiscordMessageAttachment) Descriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{9} -} - -func (x *DiscordMessageAttachment) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *DiscordMessageAttachment) GetMessageId() string { - if x != nil { - return x.MessageId - } - return "" -} - -func (x *DiscordMessageAttachment) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -func (x *DiscordMessageAttachment) GetFileName() string { - if x != nil { - return x.FileName - } - return "" -} - -func (x *DiscordMessageAttachment) GetFileSizeBytes() uint64 { - if x != nil { - return x.FileSizeBytes - } - return 0 -} - -func (x *DiscordMessageAttachment) GetContentType() string { - if x != nil { - return x.ContentType - } - return "" -} - -func (x *DiscordMessageAttachment) GetPayload() []byte { - if x != nil { - return x.Payload - } - return nil -} - -func (x *DiscordMessageAttachment) GetLocalUrl() string { - if x != nil { - return x.LocalUrl - } - return "" -} - -type BridgeMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BridgeName string `protobuf:"bytes,1,opt,name=bridgeName,proto3" json:"bridgeName,omitempty"` - UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` - UserAvatar string `protobuf:"bytes,3,opt,name=userAvatar,proto3" json:"userAvatar,omitempty"` - UserID string `protobuf:"bytes,4,opt,name=userID,proto3" json:"userID,omitempty"` - Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` - MessageID string `protobuf:"bytes,6,opt,name=messageID,proto3" json:"messageID,omitempty"` - ParentMessageID string `protobuf:"bytes,7,opt,name=parentMessageID,proto3" json:"parentMessageID,omitempty"` -} - -func (x *BridgeMessage) Reset() { - *x = BridgeMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_message_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BridgeMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BridgeMessage) ProtoMessage() {} - -func (x *BridgeMessage) ProtoReflect() protoreflect.Message { - mi := &file_chat_message_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BridgeMessage.ProtoReflect.Descriptor instead. -func (*BridgeMessage) Descriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{10} -} - -func (x *BridgeMessage) GetBridgeName() string { - if x != nil { - return x.BridgeName - } - return "" -} - -func (x *BridgeMessage) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -func (x *BridgeMessage) GetUserAvatar() string { - if x != nil { - return x.UserAvatar - } - return "" -} - -func (x *BridgeMessage) GetUserID() string { - if x != nil { - return x.UserID - } - return "" -} - -func (x *BridgeMessage) GetContent() string { - if x != nil { - return x.Content - } - return "" -} - -func (x *BridgeMessage) GetMessageID() string { - if x != nil { - return x.MessageID - } - return "" -} - -func (x *BridgeMessage) GetParentMessageID() string { - if x != nil { - return x.ParentMessageID - } - return "" -} - -type UnfurledLinkThumbnail struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - Width uint32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"` - Height uint32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` -} - -func (x *UnfurledLinkThumbnail) Reset() { - *x = UnfurledLinkThumbnail{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_message_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UnfurledLinkThumbnail) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UnfurledLinkThumbnail) ProtoMessage() {} - -func (x *UnfurledLinkThumbnail) ProtoReflect() protoreflect.Message { - mi := &file_chat_message_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UnfurledLinkThumbnail.ProtoReflect.Descriptor instead. -func (*UnfurledLinkThumbnail) Descriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{11} -} - -func (x *UnfurledLinkThumbnail) GetPayload() []byte { - if x != nil { - return x.Payload - } - return nil -} - -func (x *UnfurledLinkThumbnail) GetWidth() uint32 { - if x != nil { - return x.Width - } - return 0 -} - -func (x *UnfurledLinkThumbnail) GetHeight() uint32 { - if x != nil { - return x.Height - } - return 0 -} - -type UnfurledLink struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A valid URL which uniquely identifies this link. - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - // Website's title. - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - // Description is sometimes available, but can be empty. Most mainstream - // websites provide this information. - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - ThumbnailPayload []byte `protobuf:"bytes,4,opt,name=thumbnail_payload,json=thumbnailPayload,proto3" json:"thumbnail_payload,omitempty"` - ThumbnailWidth uint32 `protobuf:"varint,5,opt,name=thumbnail_width,json=thumbnailWidth,proto3" json:"thumbnail_width,omitempty"` - ThumbnailHeight uint32 `protobuf:"varint,6,opt,name=thumbnail_height,json=thumbnailHeight,proto3" json:"thumbnail_height,omitempty"` - Type UnfurledLink_LinkType `protobuf:"varint,7,opt,name=type,proto3,enum=protobuf.UnfurledLink_LinkType" json:"type,omitempty"` -} - -func (x *UnfurledLink) Reset() { - *x = UnfurledLink{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_message_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UnfurledLink) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UnfurledLink) ProtoMessage() {} - -func (x *UnfurledLink) ProtoReflect() protoreflect.Message { - mi := &file_chat_message_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UnfurledLink.ProtoReflect.Descriptor instead. -func (*UnfurledLink) Descriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{12} -} - -func (x *UnfurledLink) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -func (x *UnfurledLink) GetTitle() string { - if x != nil { - return x.Title - } - return "" -} - -func (x *UnfurledLink) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *UnfurledLink) GetThumbnailPayload() []byte { - if x != nil { - return x.ThumbnailPayload - } - return nil -} - -func (x *UnfurledLink) GetThumbnailWidth() uint32 { - if x != nil { - return x.ThumbnailWidth - } - return 0 -} - -func (x *UnfurledLink) GetThumbnailHeight() uint32 { - if x != nil { - return x.ThumbnailHeight - } - return 0 -} - -func (x *UnfurledLink) GetType() UnfurledLink_LinkType { - if x != nil { - return x.Type - } - return UnfurledLink_LINK -} - -type UnfurledStatusContactLink struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - Icon *UnfurledLinkThumbnail `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon,omitempty"` -} - -func (x *UnfurledStatusContactLink) Reset() { - *x = UnfurledStatusContactLink{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_message_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UnfurledStatusContactLink) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UnfurledStatusContactLink) ProtoMessage() {} - -func (x *UnfurledStatusContactLink) ProtoReflect() protoreflect.Message { - mi := &file_chat_message_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UnfurledStatusContactLink.ProtoReflect.Descriptor instead. -func (*UnfurledStatusContactLink) Descriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{13} -} - -func (x *UnfurledStatusContactLink) GetPublicKey() []byte { - if x != nil { - return x.PublicKey - } - return nil -} - -func (x *UnfurledStatusContactLink) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *UnfurledStatusContactLink) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *UnfurledStatusContactLink) GetIcon() *UnfurledLinkThumbnail { - if x != nil { - return x.Icon - } - return nil -} - -type UnfurledStatusCommunityLink struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CommunityId []byte `protobuf:"bytes,1,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` - DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - MembersCount uint32 `protobuf:"varint,4,opt,name=members_count,json=membersCount,proto3" json:"members_count,omitempty"` - Color string `protobuf:"bytes,5,opt,name=color,proto3" json:"color,omitempty"` - Icon *UnfurledLinkThumbnail `protobuf:"bytes,7,opt,name=icon,proto3" json:"icon,omitempty"` - Banner *UnfurledLinkThumbnail `protobuf:"bytes,8,opt,name=banner,proto3" json:"banner,omitempty"` -} - -func (x *UnfurledStatusCommunityLink) Reset() { - *x = UnfurledStatusCommunityLink{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_message_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UnfurledStatusCommunityLink) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UnfurledStatusCommunityLink) ProtoMessage() {} - -func (x *UnfurledStatusCommunityLink) ProtoReflect() protoreflect.Message { - mi := &file_chat_message_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UnfurledStatusCommunityLink.ProtoReflect.Descriptor instead. -func (*UnfurledStatusCommunityLink) Descriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{14} -} - -func (x *UnfurledStatusCommunityLink) GetCommunityId() []byte { - if x != nil { - return x.CommunityId - } - return nil -} - -func (x *UnfurledStatusCommunityLink) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *UnfurledStatusCommunityLink) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *UnfurledStatusCommunityLink) GetMembersCount() uint32 { - if x != nil { - return x.MembersCount - } - return 0 -} - -func (x *UnfurledStatusCommunityLink) GetColor() string { - if x != nil { - return x.Color - } - return "" -} - -func (x *UnfurledStatusCommunityLink) GetIcon() *UnfurledLinkThumbnail { - if x != nil { - return x.Icon - } - return nil -} - -func (x *UnfurledStatusCommunityLink) GetBanner() *UnfurledLinkThumbnail { - if x != nil { - return x.Banner - } - return nil -} - -type UnfurledStatusChannelLink struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ChannelUuid string `protobuf:"bytes,1,opt,name=channel_uuid,json=channelUuid,proto3" json:"channel_uuid,omitempty"` - Emoji string `protobuf:"bytes,2,opt,name=emoji,proto3" json:"emoji,omitempty"` - DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` - Color string `protobuf:"bytes,5,opt,name=color,proto3" json:"color,omitempty"` - Community *UnfurledStatusCommunityLink `protobuf:"bytes,6,opt,name=community,proto3" json:"community,omitempty"` -} - -func (x *UnfurledStatusChannelLink) Reset() { - *x = UnfurledStatusChannelLink{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_message_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UnfurledStatusChannelLink) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UnfurledStatusChannelLink) ProtoMessage() {} - -func (x *UnfurledStatusChannelLink) ProtoReflect() protoreflect.Message { - mi := &file_chat_message_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UnfurledStatusChannelLink.ProtoReflect.Descriptor instead. -func (*UnfurledStatusChannelLink) Descriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{15} -} - -func (x *UnfurledStatusChannelLink) GetChannelUuid() string { - if x != nil { - return x.ChannelUuid - } - return "" -} - -func (x *UnfurledStatusChannelLink) GetEmoji() string { - if x != nil { - return x.Emoji - } - return "" -} - -func (x *UnfurledStatusChannelLink) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *UnfurledStatusChannelLink) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *UnfurledStatusChannelLink) GetColor() string { - if x != nil { - return x.Color - } - return "" -} - -func (x *UnfurledStatusChannelLink) GetCommunity() *UnfurledStatusCommunityLink { - if x != nil { - return x.Community - } - return nil -} - -type UnfurledStatusLink struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - // Types that are assignable to Payload: - // - // *UnfurledStatusLink_Contact - // *UnfurledStatusLink_Community - // *UnfurledStatusLink_Channel - Payload isUnfurledStatusLink_Payload `protobuf_oneof:"payload"` -} - -func (x *UnfurledStatusLink) Reset() { - *x = UnfurledStatusLink{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_message_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UnfurledStatusLink) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UnfurledStatusLink) ProtoMessage() {} - -func (x *UnfurledStatusLink) ProtoReflect() protoreflect.Message { - mi := &file_chat_message_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UnfurledStatusLink.ProtoReflect.Descriptor instead. -func (*UnfurledStatusLink) Descriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{16} -} - -func (x *UnfurledStatusLink) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} +var xxx_messageInfo_ImageMessage proto.InternalMessageInfo -func (m *UnfurledStatusLink) GetPayload() isUnfurledStatusLink_Payload { +func (m *ImageMessage) GetPayload() []byte { if m != nil { return m.Payload } return nil } -func (x *UnfurledStatusLink) GetContact() *UnfurledStatusContactLink { - if x, ok := x.GetPayload().(*UnfurledStatusLink_Contact); ok { - return x.Contact +func (m *ImageMessage) GetFormat() ImageFormat { + if m != nil { + return m.Format + } + return ImageFormat_UNKNOWN_IMAGE_FORMAT +} + +func (m *ImageMessage) GetAlbumId() string { + if m != nil { + return m.AlbumId + } + return "" +} + +func (m *ImageMessage) GetWidth() uint32 { + if m != nil { + return m.Width + } + return 0 +} + +func (m *ImageMessage) GetHeight() uint32 { + if m != nil { + return m.Height + } + return 0 +} + +func (m *ImageMessage) GetAlbumImagesCount() uint32 { + if m != nil { + return m.AlbumImagesCount + } + return 0 +} + +type AudioMessage struct { + Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Type AudioMessage_AudioType `protobuf:"varint,2,opt,name=type,proto3,enum=protobuf.AudioMessage_AudioType" json:"type,omitempty"` + DurationMs uint64 `protobuf:"varint,3,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AudioMessage) Reset() { *m = AudioMessage{} } +func (m *AudioMessage) String() string { return proto.CompactTextString(m) } +func (*AudioMessage) ProtoMessage() {} +func (*AudioMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_263952f55fd35689, []int{2} +} + +func (m *AudioMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AudioMessage.Unmarshal(m, b) +} +func (m *AudioMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AudioMessage.Marshal(b, m, deterministic) +} +func (m *AudioMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_AudioMessage.Merge(m, src) +} +func (m *AudioMessage) XXX_Size() int { + return xxx_messageInfo_AudioMessage.Size(m) +} +func (m *AudioMessage) XXX_DiscardUnknown() { + xxx_messageInfo_AudioMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_AudioMessage proto.InternalMessageInfo + +func (m *AudioMessage) GetPayload() []byte { + if m != nil { + return m.Payload } return nil } -func (x *UnfurledStatusLink) GetCommunity() *UnfurledStatusCommunityLink { - if x, ok := x.GetPayload().(*UnfurledStatusLink_Community); ok { - return x.Community +func (m *AudioMessage) GetType() AudioMessage_AudioType { + if m != nil { + return m.Type + } + return AudioMessage_UNKNOWN_AUDIO_TYPE +} + +func (m *AudioMessage) GetDurationMs() uint64 { + if m != nil { + return m.DurationMs + } + return 0 +} + +type EditMessage struct { + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + // Text of the message + Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` + ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + MessageId string `protobuf:"bytes,4,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` + // Grant for community edit messages + Grant []byte `protobuf:"bytes,5,opt,name=grant,proto3" json:"grant,omitempty"` // Deprecated: Do not use. + // The type of message (public/one-to-one/private-group-chat) + MessageType MessageType `protobuf:"varint,6,opt,name=message_type,json=messageType,proto3,enum=protobuf.MessageType" json:"message_type,omitempty"` + ContentType ChatMessage_ContentType `protobuf:"varint,7,opt,name=content_type,json=contentType,proto3,enum=protobuf.ChatMessage_ContentType" json:"content_type,omitempty"` + UnfurledLinks []*UnfurledLink `protobuf:"bytes,8,rep,name=unfurled_links,json=unfurledLinks,proto3" json:"unfurled_links,omitempty"` + UnfurledStatusLinks *UnfurledStatusLinks `protobuf:"bytes,9,opt,name=unfurled_status_links,json=unfurledStatusLinks,proto3" json:"unfurled_status_links,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EditMessage) Reset() { *m = EditMessage{} } +func (m *EditMessage) String() string { return proto.CompactTextString(m) } +func (*EditMessage) ProtoMessage() {} +func (*EditMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_263952f55fd35689, []int{3} +} + +func (m *EditMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EditMessage.Unmarshal(m, b) +} +func (m *EditMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EditMessage.Marshal(b, m, deterministic) +} +func (m *EditMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_EditMessage.Merge(m, src) +} +func (m *EditMessage) XXX_Size() int { + return xxx_messageInfo_EditMessage.Size(m) +} +func (m *EditMessage) XXX_DiscardUnknown() { + xxx_messageInfo_EditMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_EditMessage proto.InternalMessageInfo + +func (m *EditMessage) GetClock() uint64 { + if m != nil { + return m.Clock + } + return 0 +} + +func (m *EditMessage) GetText() string { + if m != nil { + return m.Text + } + return "" +} + +func (m *EditMessage) GetChatId() string { + if m != nil { + return m.ChatId + } + return "" +} + +func (m *EditMessage) GetMessageId() string { + if m != nil { + return m.MessageId + } + return "" +} + +// Deprecated: Do not use. +func (m *EditMessage) GetGrant() []byte { + if m != nil { + return m.Grant } return nil } -func (x *UnfurledStatusLink) GetChannel() *UnfurledStatusChannelLink { - if x, ok := x.GetPayload().(*UnfurledStatusLink_Channel); ok { - return x.Channel +func (m *EditMessage) GetMessageType() MessageType { + if m != nil { + return m.MessageType + } + return MessageType_UNKNOWN_MESSAGE_TYPE +} + +func (m *EditMessage) GetContentType() ChatMessage_ContentType { + if m != nil { + return m.ContentType + } + return ChatMessage_UNKNOWN_CONTENT_TYPE +} + +func (m *EditMessage) GetUnfurledLinks() []*UnfurledLink { + if m != nil { + return m.UnfurledLinks } return nil } +func (m *EditMessage) GetUnfurledStatusLinks() *UnfurledStatusLinks { + if m != nil { + return m.UnfurledStatusLinks + } + return nil +} + +type DeleteMessage struct { + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + MessageId string `protobuf:"bytes,3,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` + // Grant for community delete messages + Grant []byte `protobuf:"bytes,4,opt,name=grant,proto3" json:"grant,omitempty"` // Deprecated: Do not use. + // The type of message (public/one-to-one/private-group-chat) + MessageType MessageType `protobuf:"varint,5,opt,name=message_type,json=messageType,proto3,enum=protobuf.MessageType" json:"message_type,omitempty"` + DeletedBy string `protobuf:"bytes,6,opt,name=deleted_by,json=deletedBy,proto3" json:"deleted_by,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteMessage) Reset() { *m = DeleteMessage{} } +func (m *DeleteMessage) String() string { return proto.CompactTextString(m) } +func (*DeleteMessage) ProtoMessage() {} +func (*DeleteMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_263952f55fd35689, []int{4} +} + +func (m *DeleteMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteMessage.Unmarshal(m, b) +} +func (m *DeleteMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteMessage.Marshal(b, m, deterministic) +} +func (m *DeleteMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteMessage.Merge(m, src) +} +func (m *DeleteMessage) XXX_Size() int { + return xxx_messageInfo_DeleteMessage.Size(m) +} +func (m *DeleteMessage) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteMessage proto.InternalMessageInfo + +func (m *DeleteMessage) GetClock() uint64 { + if m != nil { + return m.Clock + } + return 0 +} + +func (m *DeleteMessage) GetChatId() string { + if m != nil { + return m.ChatId + } + return "" +} + +func (m *DeleteMessage) GetMessageId() string { + if m != nil { + return m.MessageId + } + return "" +} + +// Deprecated: Do not use. +func (m *DeleteMessage) GetGrant() []byte { + if m != nil { + return m.Grant + } + return nil +} + +func (m *DeleteMessage) GetMessageType() MessageType { + if m != nil { + return m.MessageType + } + return MessageType_UNKNOWN_MESSAGE_TYPE +} + +func (m *DeleteMessage) GetDeletedBy() string { + if m != nil { + return m.DeletedBy + } + return "" +} + +type SyncDeleteForMeMessage struct { + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + MessageId string `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SyncDeleteForMeMessage) Reset() { *m = SyncDeleteForMeMessage{} } +func (m *SyncDeleteForMeMessage) String() string { return proto.CompactTextString(m) } +func (*SyncDeleteForMeMessage) ProtoMessage() {} +func (*SyncDeleteForMeMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_263952f55fd35689, []int{5} +} + +func (m *SyncDeleteForMeMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SyncDeleteForMeMessage.Unmarshal(m, b) +} +func (m *SyncDeleteForMeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SyncDeleteForMeMessage.Marshal(b, m, deterministic) +} +func (m *SyncDeleteForMeMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncDeleteForMeMessage.Merge(m, src) +} +func (m *SyncDeleteForMeMessage) XXX_Size() int { + return xxx_messageInfo_SyncDeleteForMeMessage.Size(m) +} +func (m *SyncDeleteForMeMessage) XXX_DiscardUnknown() { + xxx_messageInfo_SyncDeleteForMeMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_SyncDeleteForMeMessage proto.InternalMessageInfo + +func (m *SyncDeleteForMeMessage) GetClock() uint64 { + if m != nil { + return m.Clock + } + return 0 +} + +func (m *SyncDeleteForMeMessage) GetMessageId() string { + if m != nil { + return m.MessageId + } + return "" +} + +type DiscordMessage struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + Timestamp string `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + TimestampEdited string `protobuf:"bytes,4,opt,name=timestampEdited,proto3" json:"timestampEdited,omitempty"` + Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` + Author *DiscordMessageAuthor `protobuf:"bytes,6,opt,name=author,proto3" json:"author,omitempty"` + Reference *DiscordMessageReference `protobuf:"bytes,7,opt,name=reference,proto3" json:"reference,omitempty"` + Attachments []*DiscordMessageAttachment `protobuf:"bytes,8,rep,name=attachments,proto3" json:"attachments,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DiscordMessage) Reset() { *m = DiscordMessage{} } +func (m *DiscordMessage) String() string { return proto.CompactTextString(m) } +func (*DiscordMessage) ProtoMessage() {} +func (*DiscordMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_263952f55fd35689, []int{6} +} + +func (m *DiscordMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DiscordMessage.Unmarshal(m, b) +} +func (m *DiscordMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DiscordMessage.Marshal(b, m, deterministic) +} +func (m *DiscordMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_DiscordMessage.Merge(m, src) +} +func (m *DiscordMessage) XXX_Size() int { + return xxx_messageInfo_DiscordMessage.Size(m) +} +func (m *DiscordMessage) XXX_DiscardUnknown() { + xxx_messageInfo_DiscordMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_DiscordMessage proto.InternalMessageInfo + +func (m *DiscordMessage) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *DiscordMessage) GetType() string { + if m != nil { + return m.Type + } + return "" +} + +func (m *DiscordMessage) GetTimestamp() string { + if m != nil { + return m.Timestamp + } + return "" +} + +func (m *DiscordMessage) GetTimestampEdited() string { + if m != nil { + return m.TimestampEdited + } + return "" +} + +func (m *DiscordMessage) GetContent() string { + if m != nil { + return m.Content + } + return "" +} + +func (m *DiscordMessage) GetAuthor() *DiscordMessageAuthor { + if m != nil { + return m.Author + } + return nil +} + +func (m *DiscordMessage) GetReference() *DiscordMessageReference { + if m != nil { + return m.Reference + } + return nil +} + +func (m *DiscordMessage) GetAttachments() []*DiscordMessageAttachment { + if m != nil { + return m.Attachments + } + return nil +} + +type DiscordMessageAuthor struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Discriminator string `protobuf:"bytes,3,opt,name=discriminator,proto3" json:"discriminator,omitempty"` + Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"` + AvatarUrl string `protobuf:"bytes,5,opt,name=avatarUrl,proto3" json:"avatarUrl,omitempty"` + AvatarImagePayload []byte `protobuf:"bytes,6,opt,name=avatarImagePayload,proto3" json:"avatarImagePayload,omitempty"` + LocalUrl string `protobuf:"bytes,7,opt,name=localUrl,proto3" json:"localUrl,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DiscordMessageAuthor) Reset() { *m = DiscordMessageAuthor{} } +func (m *DiscordMessageAuthor) String() string { return proto.CompactTextString(m) } +func (*DiscordMessageAuthor) ProtoMessage() {} +func (*DiscordMessageAuthor) Descriptor() ([]byte, []int) { + return fileDescriptor_263952f55fd35689, []int{7} +} + +func (m *DiscordMessageAuthor) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DiscordMessageAuthor.Unmarshal(m, b) +} +func (m *DiscordMessageAuthor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DiscordMessageAuthor.Marshal(b, m, deterministic) +} +func (m *DiscordMessageAuthor) XXX_Merge(src proto.Message) { + xxx_messageInfo_DiscordMessageAuthor.Merge(m, src) +} +func (m *DiscordMessageAuthor) XXX_Size() int { + return xxx_messageInfo_DiscordMessageAuthor.Size(m) +} +func (m *DiscordMessageAuthor) XXX_DiscardUnknown() { + xxx_messageInfo_DiscordMessageAuthor.DiscardUnknown(m) +} + +var xxx_messageInfo_DiscordMessageAuthor proto.InternalMessageInfo + +func (m *DiscordMessageAuthor) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *DiscordMessageAuthor) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *DiscordMessageAuthor) GetDiscriminator() string { + if m != nil { + return m.Discriminator + } + return "" +} + +func (m *DiscordMessageAuthor) GetNickname() string { + if m != nil { + return m.Nickname + } + return "" +} + +func (m *DiscordMessageAuthor) GetAvatarUrl() string { + if m != nil { + return m.AvatarUrl + } + return "" +} + +func (m *DiscordMessageAuthor) GetAvatarImagePayload() []byte { + if m != nil { + return m.AvatarImagePayload + } + return nil +} + +func (m *DiscordMessageAuthor) GetLocalUrl() string { + if m != nil { + return m.LocalUrl + } + return "" +} + +type DiscordMessageReference struct { + MessageId string `protobuf:"bytes,1,opt,name=messageId,proto3" json:"messageId,omitempty"` + ChannelId string `protobuf:"bytes,2,opt,name=channelId,proto3" json:"channelId,omitempty"` + GuildId string `protobuf:"bytes,3,opt,name=guildId,proto3" json:"guildId,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DiscordMessageReference) Reset() { *m = DiscordMessageReference{} } +func (m *DiscordMessageReference) String() string { return proto.CompactTextString(m) } +func (*DiscordMessageReference) ProtoMessage() {} +func (*DiscordMessageReference) Descriptor() ([]byte, []int) { + return fileDescriptor_263952f55fd35689, []int{8} +} + +func (m *DiscordMessageReference) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DiscordMessageReference.Unmarshal(m, b) +} +func (m *DiscordMessageReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DiscordMessageReference.Marshal(b, m, deterministic) +} +func (m *DiscordMessageReference) XXX_Merge(src proto.Message) { + xxx_messageInfo_DiscordMessageReference.Merge(m, src) +} +func (m *DiscordMessageReference) XXX_Size() int { + return xxx_messageInfo_DiscordMessageReference.Size(m) +} +func (m *DiscordMessageReference) XXX_DiscardUnknown() { + xxx_messageInfo_DiscordMessageReference.DiscardUnknown(m) +} + +var xxx_messageInfo_DiscordMessageReference proto.InternalMessageInfo + +func (m *DiscordMessageReference) GetMessageId() string { + if m != nil { + return m.MessageId + } + return "" +} + +func (m *DiscordMessageReference) GetChannelId() string { + if m != nil { + return m.ChannelId + } + return "" +} + +func (m *DiscordMessageReference) GetGuildId() string { + if m != nil { + return m.GuildId + } + return "" +} + +type DiscordMessageAttachment struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + MessageId string `protobuf:"bytes,2,opt,name=messageId,proto3" json:"messageId,omitempty"` + Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` + FileName string `protobuf:"bytes,4,opt,name=fileName,proto3" json:"fileName,omitempty"` + FileSizeBytes uint64 `protobuf:"varint,5,opt,name=fileSizeBytes,proto3" json:"fileSizeBytes,omitempty"` + ContentType string `protobuf:"bytes,6,opt,name=contentType,proto3" json:"contentType,omitempty"` + Payload []byte `protobuf:"bytes,7,opt,name=payload,proto3" json:"payload,omitempty"` + LocalUrl string `protobuf:"bytes,8,opt,name=localUrl,proto3" json:"localUrl,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DiscordMessageAttachment) Reset() { *m = DiscordMessageAttachment{} } +func (m *DiscordMessageAttachment) String() string { return proto.CompactTextString(m) } +func (*DiscordMessageAttachment) ProtoMessage() {} +func (*DiscordMessageAttachment) Descriptor() ([]byte, []int) { + return fileDescriptor_263952f55fd35689, []int{9} +} + +func (m *DiscordMessageAttachment) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DiscordMessageAttachment.Unmarshal(m, b) +} +func (m *DiscordMessageAttachment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DiscordMessageAttachment.Marshal(b, m, deterministic) +} +func (m *DiscordMessageAttachment) XXX_Merge(src proto.Message) { + xxx_messageInfo_DiscordMessageAttachment.Merge(m, src) +} +func (m *DiscordMessageAttachment) XXX_Size() int { + return xxx_messageInfo_DiscordMessageAttachment.Size(m) +} +func (m *DiscordMessageAttachment) XXX_DiscardUnknown() { + xxx_messageInfo_DiscordMessageAttachment.DiscardUnknown(m) +} + +var xxx_messageInfo_DiscordMessageAttachment proto.InternalMessageInfo + +func (m *DiscordMessageAttachment) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *DiscordMessageAttachment) GetMessageId() string { + if m != nil { + return m.MessageId + } + return "" +} + +func (m *DiscordMessageAttachment) GetUrl() string { + if m != nil { + return m.Url + } + return "" +} + +func (m *DiscordMessageAttachment) GetFileName() string { + if m != nil { + return m.FileName + } + return "" +} + +func (m *DiscordMessageAttachment) GetFileSizeBytes() uint64 { + if m != nil { + return m.FileSizeBytes + } + return 0 +} + +func (m *DiscordMessageAttachment) GetContentType() string { + if m != nil { + return m.ContentType + } + return "" +} + +func (m *DiscordMessageAttachment) GetPayload() []byte { + if m != nil { + return m.Payload + } + return nil +} + +func (m *DiscordMessageAttachment) GetLocalUrl() string { + if m != nil { + return m.LocalUrl + } + return "" +} + +type BridgeMessage struct { + BridgeName string `protobuf:"bytes,1,opt,name=bridgeName,proto3" json:"bridgeName,omitempty"` + UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` + UserAvatar string `protobuf:"bytes,3,opt,name=userAvatar,proto3" json:"userAvatar,omitempty"` + UserID string `protobuf:"bytes,4,opt,name=userID,proto3" json:"userID,omitempty"` + Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` + MessageID string `protobuf:"bytes,6,opt,name=messageID,proto3" json:"messageID,omitempty"` + ParentMessageID string `protobuf:"bytes,7,opt,name=parentMessageID,proto3" json:"parentMessageID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BridgeMessage) Reset() { *m = BridgeMessage{} } +func (m *BridgeMessage) String() string { return proto.CompactTextString(m) } +func (*BridgeMessage) ProtoMessage() {} +func (*BridgeMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_263952f55fd35689, []int{10} +} + +func (m *BridgeMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BridgeMessage.Unmarshal(m, b) +} +func (m *BridgeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BridgeMessage.Marshal(b, m, deterministic) +} +func (m *BridgeMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_BridgeMessage.Merge(m, src) +} +func (m *BridgeMessage) XXX_Size() int { + return xxx_messageInfo_BridgeMessage.Size(m) +} +func (m *BridgeMessage) XXX_DiscardUnknown() { + xxx_messageInfo_BridgeMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_BridgeMessage proto.InternalMessageInfo + +func (m *BridgeMessage) GetBridgeName() string { + if m != nil { + return m.BridgeName + } + return "" +} + +func (m *BridgeMessage) GetUserName() string { + if m != nil { + return m.UserName + } + return "" +} + +func (m *BridgeMessage) GetUserAvatar() string { + if m != nil { + return m.UserAvatar + } + return "" +} + +func (m *BridgeMessage) GetUserID() string { + if m != nil { + return m.UserID + } + return "" +} + +func (m *BridgeMessage) GetContent() string { + if m != nil { + return m.Content + } + return "" +} + +func (m *BridgeMessage) GetMessageID() string { + if m != nil { + return m.MessageID + } + return "" +} + +func (m *BridgeMessage) GetParentMessageID() string { + if m != nil { + return m.ParentMessageID + } + return "" +} + +type UnfurledLinkThumbnail struct { + Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Width uint32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"` + Height uint32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UnfurledLinkThumbnail) Reset() { *m = UnfurledLinkThumbnail{} } +func (m *UnfurledLinkThumbnail) String() string { return proto.CompactTextString(m) } +func (*UnfurledLinkThumbnail) ProtoMessage() {} +func (*UnfurledLinkThumbnail) Descriptor() ([]byte, []int) { + return fileDescriptor_263952f55fd35689, []int{11} +} + +func (m *UnfurledLinkThumbnail) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UnfurledLinkThumbnail.Unmarshal(m, b) +} +func (m *UnfurledLinkThumbnail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UnfurledLinkThumbnail.Marshal(b, m, deterministic) +} +func (m *UnfurledLinkThumbnail) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnfurledLinkThumbnail.Merge(m, src) +} +func (m *UnfurledLinkThumbnail) XXX_Size() int { + return xxx_messageInfo_UnfurledLinkThumbnail.Size(m) +} +func (m *UnfurledLinkThumbnail) XXX_DiscardUnknown() { + xxx_messageInfo_UnfurledLinkThumbnail.DiscardUnknown(m) +} + +var xxx_messageInfo_UnfurledLinkThumbnail proto.InternalMessageInfo + +func (m *UnfurledLinkThumbnail) GetPayload() []byte { + if m != nil { + return m.Payload + } + return nil +} + +func (m *UnfurledLinkThumbnail) GetWidth() uint32 { + if m != nil { + return m.Width + } + return 0 +} + +func (m *UnfurledLinkThumbnail) GetHeight() uint32 { + if m != nil { + return m.Height + } + return 0 +} + +type UnfurledLink struct { + // A valid URL which uniquely identifies this link. + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + // Website's title. + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + // Description is sometimes available, but can be empty. Most mainstream + // websites provide this information. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + ThumbnailPayload []byte `protobuf:"bytes,4,opt,name=thumbnail_payload,json=thumbnailPayload,proto3" json:"thumbnail_payload,omitempty"` + ThumbnailWidth uint32 `protobuf:"varint,5,opt,name=thumbnail_width,json=thumbnailWidth,proto3" json:"thumbnail_width,omitempty"` + ThumbnailHeight uint32 `protobuf:"varint,6,opt,name=thumbnail_height,json=thumbnailHeight,proto3" json:"thumbnail_height,omitempty"` + Type UnfurledLink_LinkType `protobuf:"varint,7,opt,name=type,proto3,enum=protobuf.UnfurledLink_LinkType" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UnfurledLink) Reset() { *m = UnfurledLink{} } +func (m *UnfurledLink) String() string { return proto.CompactTextString(m) } +func (*UnfurledLink) ProtoMessage() {} +func (*UnfurledLink) Descriptor() ([]byte, []int) { + return fileDescriptor_263952f55fd35689, []int{12} +} + +func (m *UnfurledLink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UnfurledLink.Unmarshal(m, b) +} +func (m *UnfurledLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UnfurledLink.Marshal(b, m, deterministic) +} +func (m *UnfurledLink) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnfurledLink.Merge(m, src) +} +func (m *UnfurledLink) XXX_Size() int { + return xxx_messageInfo_UnfurledLink.Size(m) +} +func (m *UnfurledLink) XXX_DiscardUnknown() { + xxx_messageInfo_UnfurledLink.DiscardUnknown(m) +} + +var xxx_messageInfo_UnfurledLink proto.InternalMessageInfo + +func (m *UnfurledLink) GetUrl() string { + if m != nil { + return m.Url + } + return "" +} + +func (m *UnfurledLink) GetTitle() string { + if m != nil { + return m.Title + } + return "" +} + +func (m *UnfurledLink) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *UnfurledLink) GetThumbnailPayload() []byte { + if m != nil { + return m.ThumbnailPayload + } + return nil +} + +func (m *UnfurledLink) GetThumbnailWidth() uint32 { + if m != nil { + return m.ThumbnailWidth + } + return 0 +} + +func (m *UnfurledLink) GetThumbnailHeight() uint32 { + if m != nil { + return m.ThumbnailHeight + } + return 0 +} + +func (m *UnfurledLink) GetType() UnfurledLink_LinkType { + if m != nil { + return m.Type + } + return UnfurledLink_LINK +} + +type UnfurledStatusContactLink struct { + PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Icon *UnfurledLinkThumbnail `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UnfurledStatusContactLink) Reset() { *m = UnfurledStatusContactLink{} } +func (m *UnfurledStatusContactLink) String() string { return proto.CompactTextString(m) } +func (*UnfurledStatusContactLink) ProtoMessage() {} +func (*UnfurledStatusContactLink) Descriptor() ([]byte, []int) { + return fileDescriptor_263952f55fd35689, []int{13} +} + +func (m *UnfurledStatusContactLink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UnfurledStatusContactLink.Unmarshal(m, b) +} +func (m *UnfurledStatusContactLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UnfurledStatusContactLink.Marshal(b, m, deterministic) +} +func (m *UnfurledStatusContactLink) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnfurledStatusContactLink.Merge(m, src) +} +func (m *UnfurledStatusContactLink) XXX_Size() int { + return xxx_messageInfo_UnfurledStatusContactLink.Size(m) +} +func (m *UnfurledStatusContactLink) XXX_DiscardUnknown() { + xxx_messageInfo_UnfurledStatusContactLink.DiscardUnknown(m) +} + +var xxx_messageInfo_UnfurledStatusContactLink proto.InternalMessageInfo + +func (m *UnfurledStatusContactLink) GetPublicKey() []byte { + if m != nil { + return m.PublicKey + } + return nil +} + +func (m *UnfurledStatusContactLink) GetDisplayName() string { + if m != nil { + return m.DisplayName + } + return "" +} + +func (m *UnfurledStatusContactLink) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *UnfurledStatusContactLink) GetIcon() *UnfurledLinkThumbnail { + if m != nil { + return m.Icon + } + return nil +} + +type UnfurledStatusCommunityLink struct { + CommunityId []byte `protobuf:"bytes,1,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + MembersCount uint32 `protobuf:"varint,4,opt,name=members_count,json=membersCount,proto3" json:"members_count,omitempty"` + Color string `protobuf:"bytes,5,opt,name=color,proto3" json:"color,omitempty"` + Icon *UnfurledLinkThumbnail `protobuf:"bytes,7,opt,name=icon,proto3" json:"icon,omitempty"` + Banner *UnfurledLinkThumbnail `protobuf:"bytes,8,opt,name=banner,proto3" json:"banner,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UnfurledStatusCommunityLink) Reset() { *m = UnfurledStatusCommunityLink{} } +func (m *UnfurledStatusCommunityLink) String() string { return proto.CompactTextString(m) } +func (*UnfurledStatusCommunityLink) ProtoMessage() {} +func (*UnfurledStatusCommunityLink) Descriptor() ([]byte, []int) { + return fileDescriptor_263952f55fd35689, []int{14} +} + +func (m *UnfurledStatusCommunityLink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UnfurledStatusCommunityLink.Unmarshal(m, b) +} +func (m *UnfurledStatusCommunityLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UnfurledStatusCommunityLink.Marshal(b, m, deterministic) +} +func (m *UnfurledStatusCommunityLink) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnfurledStatusCommunityLink.Merge(m, src) +} +func (m *UnfurledStatusCommunityLink) XXX_Size() int { + return xxx_messageInfo_UnfurledStatusCommunityLink.Size(m) +} +func (m *UnfurledStatusCommunityLink) XXX_DiscardUnknown() { + xxx_messageInfo_UnfurledStatusCommunityLink.DiscardUnknown(m) +} + +var xxx_messageInfo_UnfurledStatusCommunityLink proto.InternalMessageInfo + +func (m *UnfurledStatusCommunityLink) GetCommunityId() []byte { + if m != nil { + return m.CommunityId + } + return nil +} + +func (m *UnfurledStatusCommunityLink) GetDisplayName() string { + if m != nil { + return m.DisplayName + } + return "" +} + +func (m *UnfurledStatusCommunityLink) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *UnfurledStatusCommunityLink) GetMembersCount() uint32 { + if m != nil { + return m.MembersCount + } + return 0 +} + +func (m *UnfurledStatusCommunityLink) GetColor() string { + if m != nil { + return m.Color + } + return "" +} + +func (m *UnfurledStatusCommunityLink) GetIcon() *UnfurledLinkThumbnail { + if m != nil { + return m.Icon + } + return nil +} + +func (m *UnfurledStatusCommunityLink) GetBanner() *UnfurledLinkThumbnail { + if m != nil { + return m.Banner + } + return nil +} + +type UnfurledStatusChannelLink struct { + ChannelUuid string `protobuf:"bytes,1,opt,name=channel_uuid,json=channelUuid,proto3" json:"channel_uuid,omitempty"` + Emoji string `protobuf:"bytes,2,opt,name=emoji,proto3" json:"emoji,omitempty"` + DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + Color string `protobuf:"bytes,5,opt,name=color,proto3" json:"color,omitempty"` + Community *UnfurledStatusCommunityLink `protobuf:"bytes,6,opt,name=community,proto3" json:"community,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UnfurledStatusChannelLink) Reset() { *m = UnfurledStatusChannelLink{} } +func (m *UnfurledStatusChannelLink) String() string { return proto.CompactTextString(m) } +func (*UnfurledStatusChannelLink) ProtoMessage() {} +func (*UnfurledStatusChannelLink) Descriptor() ([]byte, []int) { + return fileDescriptor_263952f55fd35689, []int{15} +} + +func (m *UnfurledStatusChannelLink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UnfurledStatusChannelLink.Unmarshal(m, b) +} +func (m *UnfurledStatusChannelLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UnfurledStatusChannelLink.Marshal(b, m, deterministic) +} +func (m *UnfurledStatusChannelLink) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnfurledStatusChannelLink.Merge(m, src) +} +func (m *UnfurledStatusChannelLink) XXX_Size() int { + return xxx_messageInfo_UnfurledStatusChannelLink.Size(m) +} +func (m *UnfurledStatusChannelLink) XXX_DiscardUnknown() { + xxx_messageInfo_UnfurledStatusChannelLink.DiscardUnknown(m) +} + +var xxx_messageInfo_UnfurledStatusChannelLink proto.InternalMessageInfo + +func (m *UnfurledStatusChannelLink) GetChannelUuid() string { + if m != nil { + return m.ChannelUuid + } + return "" +} + +func (m *UnfurledStatusChannelLink) GetEmoji() string { + if m != nil { + return m.Emoji + } + return "" +} + +func (m *UnfurledStatusChannelLink) GetDisplayName() string { + if m != nil { + return m.DisplayName + } + return "" +} + +func (m *UnfurledStatusChannelLink) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *UnfurledStatusChannelLink) GetColor() string { + if m != nil { + return m.Color + } + return "" +} + +func (m *UnfurledStatusChannelLink) GetCommunity() *UnfurledStatusCommunityLink { + if m != nil { + return m.Community + } + return nil +} + +type UnfurledStatusLink struct { + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + // Types that are valid to be assigned to Payload: + // + // *UnfurledStatusLink_Contact + // *UnfurledStatusLink_Community + // *UnfurledStatusLink_Channel + Payload isUnfurledStatusLink_Payload `protobuf_oneof:"payload"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UnfurledStatusLink) Reset() { *m = UnfurledStatusLink{} } +func (m *UnfurledStatusLink) String() string { return proto.CompactTextString(m) } +func (*UnfurledStatusLink) ProtoMessage() {} +func (*UnfurledStatusLink) Descriptor() ([]byte, []int) { + return fileDescriptor_263952f55fd35689, []int{16} +} + +func (m *UnfurledStatusLink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UnfurledStatusLink.Unmarshal(m, b) +} +func (m *UnfurledStatusLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UnfurledStatusLink.Marshal(b, m, deterministic) +} +func (m *UnfurledStatusLink) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnfurledStatusLink.Merge(m, src) +} +func (m *UnfurledStatusLink) XXX_Size() int { + return xxx_messageInfo_UnfurledStatusLink.Size(m) +} +func (m *UnfurledStatusLink) XXX_DiscardUnknown() { + xxx_messageInfo_UnfurledStatusLink.DiscardUnknown(m) +} + +var xxx_messageInfo_UnfurledStatusLink proto.InternalMessageInfo + +func (m *UnfurledStatusLink) GetUrl() string { + if m != nil { + return m.Url + } + return "" +} + type isUnfurledStatusLink_Payload interface { isUnfurledStatusLink_Payload() } @@ -1664,59 +1433,84 @@ func (*UnfurledStatusLink_Community) isUnfurledStatusLink_Payload() {} func (*UnfurledStatusLink_Channel) isUnfurledStatusLink_Payload() {} +func (m *UnfurledStatusLink) GetPayload() isUnfurledStatusLink_Payload { + if m != nil { + return m.Payload + } + return nil +} + +func (m *UnfurledStatusLink) GetContact() *UnfurledStatusContactLink { + if x, ok := m.GetPayload().(*UnfurledStatusLink_Contact); ok { + return x.Contact + } + return nil +} + +func (m *UnfurledStatusLink) GetCommunity() *UnfurledStatusCommunityLink { + if x, ok := m.GetPayload().(*UnfurledStatusLink_Community); ok { + return x.Community + } + return nil +} + +func (m *UnfurledStatusLink) GetChannel() *UnfurledStatusChannelLink { + if x, ok := m.GetPayload().(*UnfurledStatusLink_Channel); ok { + return x.Channel + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*UnfurledStatusLink) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*UnfurledStatusLink_Contact)(nil), + (*UnfurledStatusLink_Community)(nil), + (*UnfurledStatusLink_Channel)(nil), + } +} + // Create a wrapper around repeated property for proper unmarshalling type UnfurledStatusLinks struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UnfurledStatusLinks []*UnfurledStatusLink `protobuf:"bytes,1,rep,name=unfurled_status_links,json=unfurledStatusLinks,proto3" json:"unfurled_status_links,omitempty"` + UnfurledStatusLinks []*UnfurledStatusLink `protobuf:"bytes,1,rep,name=unfurled_status_links,json=unfurledStatusLinks,proto3" json:"unfurled_status_links,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *UnfurledStatusLinks) Reset() { - *x = UnfurledStatusLinks{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_message_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UnfurledStatusLinks) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UnfurledStatusLinks) ProtoMessage() {} - -func (x *UnfurledStatusLinks) ProtoReflect() protoreflect.Message { - mi := &file_chat_message_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UnfurledStatusLinks.ProtoReflect.Descriptor instead. +func (m *UnfurledStatusLinks) Reset() { *m = UnfurledStatusLinks{} } +func (m *UnfurledStatusLinks) String() string { return proto.CompactTextString(m) } +func (*UnfurledStatusLinks) ProtoMessage() {} func (*UnfurledStatusLinks) Descriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{17} + return fileDescriptor_263952f55fd35689, []int{17} } -func (x *UnfurledStatusLinks) GetUnfurledStatusLinks() []*UnfurledStatusLink { - if x != nil { - return x.UnfurledStatusLinks +func (m *UnfurledStatusLinks) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UnfurledStatusLinks.Unmarshal(m, b) +} +func (m *UnfurledStatusLinks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UnfurledStatusLinks.Marshal(b, m, deterministic) +} +func (m *UnfurledStatusLinks) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnfurledStatusLinks.Merge(m, src) +} +func (m *UnfurledStatusLinks) XXX_Size() int { + return xxx_messageInfo_UnfurledStatusLinks.Size(m) +} +func (m *UnfurledStatusLinks) XXX_DiscardUnknown() { + xxx_messageInfo_UnfurledStatusLinks.DiscardUnknown(m) +} + +var xxx_messageInfo_UnfurledStatusLinks proto.InternalMessageInfo + +func (m *UnfurledStatusLinks) GetUnfurledStatusLinks() []*UnfurledStatusLink { + if m != nil { + return m.UnfurledStatusLinks } return nil } type ChatMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Lamport timestamp of the chat message Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` // Unix timestamps in milliseconds, currently not used as we use whisper as @@ -1738,7 +1532,7 @@ type ChatMessage struct { MessageType MessageType `protobuf:"varint,7,opt,name=message_type,json=messageType,proto3,enum=protobuf.MessageType" json:"message_type,omitempty"` // The type of the content of the message ContentType ChatMessage_ContentType `protobuf:"varint,8,opt,name=content_type,json=contentType,proto3,enum=protobuf.ChatMessage_ContentType" json:"content_type,omitempty"` - // Types that are assignable to Payload: + // Types that are valid to be assigned to Payload: // // *ChatMessage_Sticker // *ChatMessage_Image @@ -1748,197 +1542,99 @@ type ChatMessage struct { // *ChatMessage_BridgeMessage Payload isChatMessage_Payload `protobuf_oneof:"payload"` // Grant for community chat messages - // - // Deprecated: Marked as deprecated in chat_message.proto. - Grant []byte `protobuf:"bytes,13,opt,name=grant,proto3" json:"grant,omitempty"` + Grant []byte `protobuf:"bytes,13,opt,name=grant,proto3" json:"grant,omitempty"` // Deprecated: Do not use. // Message author's display name, introduced in version 1 DisplayName string `protobuf:"bytes,14,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` ContactRequestPropagatedState *ContactRequestPropagatedState `protobuf:"bytes,15,opt,name=contact_request_propagated_state,json=contactRequestPropagatedState,proto3" json:"contact_request_propagated_state,omitempty"` UnfurledLinks []*UnfurledLink `protobuf:"bytes,16,rep,name=unfurled_links,json=unfurledLinks,proto3" json:"unfurled_links,omitempty"` Shard *Shard `protobuf:"bytes,17,opt,name=shard,proto3" json:"shard,omitempty"` UnfurledStatusLinks *UnfurledStatusLinks `protobuf:"bytes,18,opt,name=unfurled_status_links,json=unfurledStatusLinks,proto3" json:"unfurled_status_links,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ChatMessage) Reset() { - *x = ChatMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_message_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ChatMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ChatMessage) ProtoMessage() {} - -func (x *ChatMessage) ProtoReflect() protoreflect.Message { - mi := &file_chat_message_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ChatMessage.ProtoReflect.Descriptor instead. +func (m *ChatMessage) Reset() { *m = ChatMessage{} } +func (m *ChatMessage) String() string { return proto.CompactTextString(m) } +func (*ChatMessage) ProtoMessage() {} func (*ChatMessage) Descriptor() ([]byte, []int) { - return file_chat_message_proto_rawDescGZIP(), []int{18} + return fileDescriptor_263952f55fd35689, []int{18} } -func (x *ChatMessage) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *ChatMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChatMessage.Unmarshal(m, b) +} +func (m *ChatMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChatMessage.Marshal(b, m, deterministic) +} +func (m *ChatMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChatMessage.Merge(m, src) +} +func (m *ChatMessage) XXX_Size() int { + return xxx_messageInfo_ChatMessage.Size(m) +} +func (m *ChatMessage) XXX_DiscardUnknown() { + xxx_messageInfo_ChatMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_ChatMessage proto.InternalMessageInfo + +func (m *ChatMessage) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *ChatMessage) GetTimestamp() uint64 { - if x != nil { - return x.Timestamp +func (m *ChatMessage) GetTimestamp() uint64 { + if m != nil { + return m.Timestamp } return 0 } -func (x *ChatMessage) GetText() string { - if x != nil { - return x.Text +func (m *ChatMessage) GetText() string { + if m != nil { + return m.Text } return "" } -func (x *ChatMessage) GetResponseTo() string { - if x != nil { - return x.ResponseTo +func (m *ChatMessage) GetResponseTo() string { + if m != nil { + return m.ResponseTo } return "" } -func (x *ChatMessage) GetEnsName() string { - if x != nil { - return x.EnsName +func (m *ChatMessage) GetEnsName() string { + if m != nil { + return m.EnsName } return "" } -func (x *ChatMessage) GetChatId() string { - if x != nil { - return x.ChatId +func (m *ChatMessage) GetChatId() string { + if m != nil { + return m.ChatId } return "" } -func (x *ChatMessage) GetMessageType() MessageType { - if x != nil { - return x.MessageType +func (m *ChatMessage) GetMessageType() MessageType { + if m != nil { + return m.MessageType } return MessageType_UNKNOWN_MESSAGE_TYPE } -func (x *ChatMessage) GetContentType() ChatMessage_ContentType { - if x != nil { - return x.ContentType +func (m *ChatMessage) GetContentType() ChatMessage_ContentType { + if m != nil { + return m.ContentType } return ChatMessage_UNKNOWN_CONTENT_TYPE } -func (m *ChatMessage) GetPayload() isChatMessage_Payload { - if m != nil { - return m.Payload - } - return nil -} - -func (x *ChatMessage) GetSticker() *StickerMessage { - if x, ok := x.GetPayload().(*ChatMessage_Sticker); ok { - return x.Sticker - } - return nil -} - -func (x *ChatMessage) GetImage() *ImageMessage { - if x, ok := x.GetPayload().(*ChatMessage_Image); ok { - return x.Image - } - return nil -} - -func (x *ChatMessage) GetAudio() *AudioMessage { - if x, ok := x.GetPayload().(*ChatMessage_Audio); ok { - return x.Audio - } - return nil -} - -func (x *ChatMessage) GetCommunity() []byte { - if x, ok := x.GetPayload().(*ChatMessage_Community); ok { - return x.Community - } - return nil -} - -func (x *ChatMessage) GetDiscordMessage() *DiscordMessage { - if x, ok := x.GetPayload().(*ChatMessage_DiscordMessage); ok { - return x.DiscordMessage - } - return nil -} - -func (x *ChatMessage) GetBridgeMessage() *BridgeMessage { - if x, ok := x.GetPayload().(*ChatMessage_BridgeMessage); ok { - return x.BridgeMessage - } - return nil -} - -// Deprecated: Marked as deprecated in chat_message.proto. -func (x *ChatMessage) GetGrant() []byte { - if x != nil { - return x.Grant - } - return nil -} - -func (x *ChatMessage) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *ChatMessage) GetContactRequestPropagatedState() *ContactRequestPropagatedState { - if x != nil { - return x.ContactRequestPropagatedState - } - return nil -} - -func (x *ChatMessage) GetUnfurledLinks() []*UnfurledLink { - if x != nil { - return x.UnfurledLinks - } - return nil -} - -func (x *ChatMessage) GetShard() *Shard { - if x != nil { - return x.Shard - } - return nil -} - -func (x *ChatMessage) GetUnfurledStatusLinks() *UnfurledStatusLinks { - if x != nil { - return x.UnfurledStatusLinks - } - return nil -} - type isChatMessage_Payload interface { isChatMessage_Payload() } @@ -1979,671 +1675,101 @@ func (*ChatMessage_DiscordMessage) isChatMessage_Payload() {} func (*ChatMessage_BridgeMessage) isChatMessage_Payload() {} -var File_chat_message_proto protoreflect.FileDescriptor - -var file_chat_message_proto_rawDesc = []byte{ - 0x0a, 0x12, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x0b, - 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x63, 0x6f, 0x6e, - 0x74, 0x61, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0b, 0x73, 0x68, 0x61, 0x72, - 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x38, 0x0a, 0x0e, 0x53, 0x74, 0x69, 0x63, 0x6b, - 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, - 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x12, 0x0a, - 0x04, 0x70, 0x61, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x63, - 0x6b, 0x22, 0xce, 0x01, 0x0a, 0x0c, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2d, 0x0a, 0x06, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x46, 0x6f, 0x72, - 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, - 0x6c, 0x62, 0x75, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, - 0x6c, 0x62, 0x75, 0x6d, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, - 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x61, 0x6c, 0x62, 0x75, 0x6d, 0x5f, 0x69, 0x6d, - 0x61, 0x67, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x10, 0x61, 0x6c, 0x62, 0x75, 0x6d, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x43, 0x6f, 0x75, - 0x6e, 0x74, 0x22, 0xb6, 0x01, 0x0a, 0x0c, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x34, 0x0a, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x6d, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x4d, 0x73, 0x22, 0x35, 0x0a, 0x09, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x41, 0x55, 0x44, - 0x49, 0x4f, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x41, 0x43, - 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4d, 0x52, 0x10, 0x02, 0x22, 0x9b, 0x03, 0x0a, 0x0b, - 0x45, 0x64, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, - 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, - 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12, 0x1d, - 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x18, 0x0a, - 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, - 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x44, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x43, 0x68, 0x61, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x43, - 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, - 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3d, 0x0a, 0x0e, 0x75, 0x6e, 0x66, 0x75, 0x72, - 0x6c, 0x65, 0x64, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x66, 0x75, 0x72, - 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x0d, 0x75, 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, - 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x12, 0x51, 0x0a, 0x15, 0x75, 0x6e, 0x66, 0x75, 0x72, 0x6c, - 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x55, 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4c, - 0x69, 0x6e, 0x6b, 0x73, 0x52, 0x13, 0x75, 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x22, 0xd0, 0x01, 0x0a, 0x0d, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, - 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, - 0x6b, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x05, 0x67, 0x72, 0x61, - 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x67, 0x72, - 0x61, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, - 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x42, 0x79, 0x22, 0x4d, 0x0a, 0x16, - 0x53, 0x79, 0x6e, 0x63, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x6f, 0x72, 0x4d, 0x65, 0x4d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, 0xd5, 0x02, 0x0a, 0x0e, - 0x44, 0x69, 0x73, 0x63, 0x6f, 0x72, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, - 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x12, 0x28, 0x0a, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x45, 0x64, 0x69, - 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x45, 0x64, 0x69, 0x74, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, - 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, - 0x74, 0x65, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x44, 0x69, 0x73, 0x63, 0x6f, 0x72, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x41, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x3f, 0x0a, 0x09, - 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, - 0x72, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x44, 0x0a, - 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x08, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x69, - 0x73, 0x63, 0x6f, 0x72, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x41, 0x74, 0x74, 0x61, - 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x22, 0xe6, 0x01, 0x0a, 0x14, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x72, 0x64, 0x4d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x69, 0x73, 0x63, 0x72, 0x69, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x6f, - 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x69, 0x73, 0x63, 0x72, 0x69, 0x6d, - 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, - 0x12, 0x2e, 0x0a, 0x12, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, - 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x61, 0x76, - 0x61, 0x74, 0x61, 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, - 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x55, 0x72, 0x6c, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x55, 0x72, 0x6c, 0x22, 0x6f, 0x0a, 0x17, - 0x44, 0x69, 0x73, 0x63, 0x6f, 0x72, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, - 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, - 0x6c, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x22, 0xf4, 0x01, - 0x0a, 0x18, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x72, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, - 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, - 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x69, - 0x7a, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x66, - 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, - 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x55, 0x72, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x55, 0x72, 0x6c, 0x22, 0xe5, 0x01, 0x0a, 0x0d, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x4d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x72, 0x69, 0x64, - 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x41, 0x76, 0x61, 0x74, 0x61, 0x72, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x41, 0x76, 0x61, 0x74, - 0x61, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, - 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, - 0x74, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, - 0x44, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x49, 0x44, 0x12, 0x28, 0x0a, 0x0f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x49, 0x44, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x44, 0x22, 0x5f, 0x0a, 0x15, - 0x55, 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x54, 0x68, 0x75, 0x6d, - 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, - 0x14, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, - 0x77, 0x69, 0x64, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0xaf, 0x02, - 0x0a, 0x0c, 0x55, 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x10, - 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, - 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x68, 0x75, 0x6d, - 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x10, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x50, 0x61, - 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, - 0x69, 0x6c, 0x5f, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, - 0x74, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x57, 0x69, 0x64, 0x74, 0x68, 0x12, 0x29, - 0x0a, 0x10, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x5f, 0x68, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x6e, - 0x61, 0x69, 0x6c, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x2e, - 0x4c, 0x69, 0x6e, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x1f, - 0x0a, 0x08, 0x4c, 0x69, 0x6e, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x49, - 0x4e, 0x4b, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, 0x01, 0x22, - 0xb4, 0x01, 0x0a, 0x19, 0x55, 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x1d, 0x0a, - 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x0c, - 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x33, 0x0a, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x66, 0x75, 0x72, - 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x54, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, - 0x52, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x22, 0xae, 0x02, 0x0a, 0x1b, 0x55, 0x6e, 0x66, 0x75, 0x72, - 0x6c, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, - 0x74, 0x79, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, - 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x6f, - 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, - 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, - 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, - 0x0a, 0x0d, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x6f, - 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x33, 0x0a, 0x04, 0x69, 0x63, 0x6f, - 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x54, - 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x52, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x37, - 0x0a, 0x06, 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x66, 0x75, 0x72, 0x6c, - 0x65, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x54, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x52, - 0x06, 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x22, 0xf4, 0x01, 0x0a, 0x19, 0x55, 0x6e, 0x66, 0x75, - 0x72, 0x6c, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, - 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, - 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x68, 0x61, - 0x6e, 0x6e, 0x65, 0x6c, 0x55, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x6f, 0x6a, - 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x12, 0x21, - 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x43, 0x0a, 0x09, 0x63, 0x6f, 0x6d, - 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x4c, - 0x69, 0x6e, 0x6b, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x22, 0xfa, - 0x01, 0x0a, 0x12, 0x55, 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x3f, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x61, - 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x48, 0x00, 0x52, - 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x12, 0x45, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, - 0x75, 0x6e, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x4c, 0x69, - 0x6e, 0x6b, 0x48, 0x00, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x12, - 0x3f, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x66, 0x75, - 0x72, 0x6c, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, - 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x48, 0x00, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, - 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x67, 0x0a, 0x13, 0x55, - 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4c, 0x69, 0x6e, - 0x6b, 0x73, 0x12, 0x50, 0x0a, 0x15, 0x75, 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, 0x5f, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x66, - 0x75, 0x72, 0x6c, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4c, 0x69, 0x6e, 0x6b, 0x52, - 0x13, 0x75, 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4c, - 0x69, 0x6e, 0x6b, 0x73, 0x22, 0xad, 0x0b, 0x0a, 0x0b, 0x43, 0x68, 0x61, 0x74, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1f, 0x0a, 0x0b, - 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x6f, 0x12, 0x19, 0x0a, - 0x08, 0x65, 0x6e, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x65, 0x6e, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, - 0x64, 0x12, 0x38, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x44, 0x0a, 0x0c, 0x63, - 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x68, 0x61, - 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x34, 0x0a, 0x07, 0x73, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, - 0x69, 0x63, 0x6b, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x07, - 0x73, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, - 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x75, 0x64, 0x69, 0x6f, - 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, - 0x52, 0x05, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x12, 0x1e, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x75, - 0x6e, 0x69, 0x74, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x09, 0x63, 0x6f, - 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x12, 0x43, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x63, 0x6f, - 0x72, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x63, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x69, 0x73, 0x63, - 0x6f, 0x72, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x0e, 0x64, 0x69, - 0x73, 0x63, 0x6f, 0x72, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x40, 0x0a, 0x0e, - 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x64, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, - 0x0d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x18, - 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, - 0x01, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, - 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x70, 0x0a, 0x20, 0x63, - 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x70, - 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, - 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, - 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x1d, - 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, - 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3d, 0x0a, - 0x0e, 0x75, 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, - 0x10, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x55, 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x0d, 0x75, - 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x12, 0x25, 0x0a, 0x05, - 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x05, 0x73, 0x68, - 0x61, 0x72, 0x64, 0x12, 0x51, 0x0a, 0x15, 0x75, 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, 0x5f, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x12, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, - 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4c, 0x69, 0x6e, 0x6b, - 0x73, 0x52, 0x13, 0x75, 0x6e, 0x66, 0x75, 0x72, 0x6c, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x22, 0xd0, 0x03, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x74, 0x65, - 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, - 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, - 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x45, 0x58, 0x54, 0x5f, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x10, 0x01, - 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x54, 0x49, 0x43, 0x4b, 0x45, 0x52, 0x10, 0x02, 0x12, 0x0a, 0x0a, - 0x06, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x4d, 0x4f, - 0x4a, 0x49, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, - 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x10, 0x05, 0x12, 0x28, 0x0a, - 0x24, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, - 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x5f, - 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x06, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4d, 0x41, 0x47, 0x45, - 0x10, 0x07, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x55, 0x44, 0x49, 0x4f, 0x10, 0x08, 0x12, 0x0d, 0x0a, - 0x09, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x10, 0x09, 0x12, 0x16, 0x0a, 0x12, - 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x47, - 0x41, 0x50, 0x10, 0x0a, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, 0x5f, - 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, 0x0b, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x49, 0x53, - 0x43, 0x4f, 0x52, 0x44, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x0c, 0x12, 0x19, - 0x0a, 0x15, 0x49, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x59, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, - 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0d, 0x12, 0x21, 0x0a, 0x1d, 0x53, 0x59, 0x53, - 0x54, 0x45, 0x4d, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x50, 0x49, 0x4e, 0x4e, - 0x45, 0x44, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x0e, 0x12, 0x24, 0x0a, 0x20, - 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x4d, - 0x55, 0x54, 0x55, 0x41, 0x4c, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x45, 0x4e, 0x54, - 0x10, 0x0f, 0x12, 0x28, 0x0a, 0x24, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x5f, 0x4d, 0x45, 0x53, - 0x53, 0x41, 0x47, 0x45, 0x5f, 0x4d, 0x55, 0x54, 0x55, 0x41, 0x4c, 0x5f, 0x45, 0x56, 0x45, 0x4e, - 0x54, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x45, 0x44, 0x10, 0x10, 0x12, 0x27, 0x0a, 0x23, - 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x4d, - 0x55, 0x54, 0x55, 0x41, 0x4c, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x52, 0x45, 0x4d, 0x4f, - 0x56, 0x45, 0x44, 0x10, 0x11, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x52, 0x49, 0x44, 0x47, 0x45, 0x5f, - 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x12, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, - 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_chat_message_proto_rawDescOnce sync.Once - file_chat_message_proto_rawDescData = file_chat_message_proto_rawDesc -) - -func file_chat_message_proto_rawDescGZIP() []byte { - file_chat_message_proto_rawDescOnce.Do(func() { - file_chat_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_chat_message_proto_rawDescData) - }) - return file_chat_message_proto_rawDescData -} - -var file_chat_message_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_chat_message_proto_msgTypes = make([]protoimpl.MessageInfo, 19) -var file_chat_message_proto_goTypes = []interface{}{ - (AudioMessage_AudioType)(0), // 0: protobuf.AudioMessage.AudioType - (UnfurledLink_LinkType)(0), // 1: protobuf.UnfurledLink.LinkType - (ChatMessage_ContentType)(0), // 2: protobuf.ChatMessage.ContentType - (*StickerMessage)(nil), // 3: protobuf.StickerMessage - (*ImageMessage)(nil), // 4: protobuf.ImageMessage - (*AudioMessage)(nil), // 5: protobuf.AudioMessage - (*EditMessage)(nil), // 6: protobuf.EditMessage - (*DeleteMessage)(nil), // 7: protobuf.DeleteMessage - (*SyncDeleteForMeMessage)(nil), // 8: protobuf.SyncDeleteForMeMessage - (*DiscordMessage)(nil), // 9: protobuf.DiscordMessage - (*DiscordMessageAuthor)(nil), // 10: protobuf.DiscordMessageAuthor - (*DiscordMessageReference)(nil), // 11: protobuf.DiscordMessageReference - (*DiscordMessageAttachment)(nil), // 12: protobuf.DiscordMessageAttachment - (*BridgeMessage)(nil), // 13: protobuf.BridgeMessage - (*UnfurledLinkThumbnail)(nil), // 14: protobuf.UnfurledLinkThumbnail - (*UnfurledLink)(nil), // 15: protobuf.UnfurledLink - (*UnfurledStatusContactLink)(nil), // 16: protobuf.UnfurledStatusContactLink - (*UnfurledStatusCommunityLink)(nil), // 17: protobuf.UnfurledStatusCommunityLink - (*UnfurledStatusChannelLink)(nil), // 18: protobuf.UnfurledStatusChannelLink - (*UnfurledStatusLink)(nil), // 19: protobuf.UnfurledStatusLink - (*UnfurledStatusLinks)(nil), // 20: protobuf.UnfurledStatusLinks - (*ChatMessage)(nil), // 21: protobuf.ChatMessage - (ImageFormat)(0), // 22: protobuf.ImageFormat - (MessageType)(0), // 23: protobuf.MessageType - (*ContactRequestPropagatedState)(nil), // 24: protobuf.ContactRequestPropagatedState - (*Shard)(nil), // 25: protobuf.Shard -} -var file_chat_message_proto_depIdxs = []int32{ - 22, // 0: protobuf.ImageMessage.format:type_name -> protobuf.ImageFormat - 0, // 1: protobuf.AudioMessage.type:type_name -> protobuf.AudioMessage.AudioType - 23, // 2: protobuf.EditMessage.message_type:type_name -> protobuf.MessageType - 2, // 3: protobuf.EditMessage.content_type:type_name -> protobuf.ChatMessage.ContentType - 15, // 4: protobuf.EditMessage.unfurled_links:type_name -> protobuf.UnfurledLink - 20, // 5: protobuf.EditMessage.unfurled_status_links:type_name -> protobuf.UnfurledStatusLinks - 23, // 6: protobuf.DeleteMessage.message_type:type_name -> protobuf.MessageType - 10, // 7: protobuf.DiscordMessage.author:type_name -> protobuf.DiscordMessageAuthor - 11, // 8: protobuf.DiscordMessage.reference:type_name -> protobuf.DiscordMessageReference - 12, // 9: protobuf.DiscordMessage.attachments:type_name -> protobuf.DiscordMessageAttachment - 1, // 10: protobuf.UnfurledLink.type:type_name -> protobuf.UnfurledLink.LinkType - 14, // 11: protobuf.UnfurledStatusContactLink.icon:type_name -> protobuf.UnfurledLinkThumbnail - 14, // 12: protobuf.UnfurledStatusCommunityLink.icon:type_name -> protobuf.UnfurledLinkThumbnail - 14, // 13: protobuf.UnfurledStatusCommunityLink.banner:type_name -> protobuf.UnfurledLinkThumbnail - 17, // 14: protobuf.UnfurledStatusChannelLink.community:type_name -> protobuf.UnfurledStatusCommunityLink - 16, // 15: protobuf.UnfurledStatusLink.contact:type_name -> protobuf.UnfurledStatusContactLink - 17, // 16: protobuf.UnfurledStatusLink.community:type_name -> protobuf.UnfurledStatusCommunityLink - 18, // 17: protobuf.UnfurledStatusLink.channel:type_name -> protobuf.UnfurledStatusChannelLink - 19, // 18: protobuf.UnfurledStatusLinks.unfurled_status_links:type_name -> protobuf.UnfurledStatusLink - 23, // 19: protobuf.ChatMessage.message_type:type_name -> protobuf.MessageType - 2, // 20: protobuf.ChatMessage.content_type:type_name -> protobuf.ChatMessage.ContentType - 3, // 21: protobuf.ChatMessage.sticker:type_name -> protobuf.StickerMessage - 4, // 22: protobuf.ChatMessage.image:type_name -> protobuf.ImageMessage - 5, // 23: protobuf.ChatMessage.audio:type_name -> protobuf.AudioMessage - 9, // 24: protobuf.ChatMessage.discord_message:type_name -> protobuf.DiscordMessage - 13, // 25: protobuf.ChatMessage.bridge_message:type_name -> protobuf.BridgeMessage - 24, // 26: protobuf.ChatMessage.contact_request_propagated_state:type_name -> protobuf.ContactRequestPropagatedState - 15, // 27: protobuf.ChatMessage.unfurled_links:type_name -> protobuf.UnfurledLink - 25, // 28: protobuf.ChatMessage.shard:type_name -> protobuf.Shard - 20, // 29: protobuf.ChatMessage.unfurled_status_links:type_name -> protobuf.UnfurledStatusLinks - 30, // [30:30] is the sub-list for method output_type - 30, // [30:30] is the sub-list for method input_type - 30, // [30:30] is the sub-list for extension type_name - 30, // [30:30] is the sub-list for extension extendee - 0, // [0:30] is the sub-list for field type_name -} - -func init() { file_chat_message_proto_init() } -func file_chat_message_proto_init() { - if File_chat_message_proto != nil { - return +func (m *ChatMessage) GetPayload() isChatMessage_Payload { + if m != nil { + return m.Payload } - file_enums_proto_init() - file_contact_proto_init() - file_shard_proto_init() - if !protoimpl.UnsafeEnabled { - file_chat_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StickerMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImageMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AudioMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EditMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncDeleteForMeMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DiscordMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_message_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DiscordMessageAuthor); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_message_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DiscordMessageReference); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_message_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DiscordMessageAttachment); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_message_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BridgeMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_message_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnfurledLinkThumbnail); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_message_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnfurledLink); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_message_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnfurledStatusContactLink); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_message_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnfurledStatusCommunityLink); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_message_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnfurledStatusChannelLink); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_message_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnfurledStatusLink); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_message_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnfurledStatusLinks); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_message_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChatMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } + return nil +} + +func (m *ChatMessage) GetSticker() *StickerMessage { + if x, ok := m.GetPayload().(*ChatMessage_Sticker); ok { + return x.Sticker } - file_chat_message_proto_msgTypes[16].OneofWrappers = []interface{}{ - (*UnfurledStatusLink_Contact)(nil), - (*UnfurledStatusLink_Community)(nil), - (*UnfurledStatusLink_Channel)(nil), + return nil +} + +func (m *ChatMessage) GetImage() *ImageMessage { + if x, ok := m.GetPayload().(*ChatMessage_Image); ok { + return x.Image } - file_chat_message_proto_msgTypes[18].OneofWrappers = []interface{}{ + return nil +} + +func (m *ChatMessage) GetAudio() *AudioMessage { + if x, ok := m.GetPayload().(*ChatMessage_Audio); ok { + return x.Audio + } + return nil +} + +func (m *ChatMessage) GetCommunity() []byte { + if x, ok := m.GetPayload().(*ChatMessage_Community); ok { + return x.Community + } + return nil +} + +func (m *ChatMessage) GetDiscordMessage() *DiscordMessage { + if x, ok := m.GetPayload().(*ChatMessage_DiscordMessage); ok { + return x.DiscordMessage + } + return nil +} + +func (m *ChatMessage) GetBridgeMessage() *BridgeMessage { + if x, ok := m.GetPayload().(*ChatMessage_BridgeMessage); ok { + return x.BridgeMessage + } + return nil +} + +// Deprecated: Do not use. +func (m *ChatMessage) GetGrant() []byte { + if m != nil { + return m.Grant + } + return nil +} + +func (m *ChatMessage) GetDisplayName() string { + if m != nil { + return m.DisplayName + } + return "" +} + +func (m *ChatMessage) GetContactRequestPropagatedState() *ContactRequestPropagatedState { + if m != nil { + return m.ContactRequestPropagatedState + } + return nil +} + +func (m *ChatMessage) GetUnfurledLinks() []*UnfurledLink { + if m != nil { + return m.UnfurledLinks + } + return nil +} + +func (m *ChatMessage) GetShard() *Shard { + if m != nil { + return m.Shard + } + return nil +} + +func (m *ChatMessage) GetUnfurledStatusLinks() *UnfurledStatusLinks { + if m != nil { + return m.UnfurledStatusLinks + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ChatMessage) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*ChatMessage_Sticker)(nil), (*ChatMessage_Image)(nil), (*ChatMessage_Audio)(nil), @@ -2651,23 +1777,160 @@ func file_chat_message_proto_init() { (*ChatMessage_DiscordMessage)(nil), (*ChatMessage_BridgeMessage)(nil), } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_chat_message_proto_rawDesc, - NumEnums: 3, - NumMessages: 19, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_chat_message_proto_goTypes, - DependencyIndexes: file_chat_message_proto_depIdxs, - EnumInfos: file_chat_message_proto_enumTypes, - MessageInfos: file_chat_message_proto_msgTypes, - }.Build() - File_chat_message_proto = out.File - file_chat_message_proto_rawDesc = nil - file_chat_message_proto_goTypes = nil - file_chat_message_proto_depIdxs = nil +} + +func init() { + proto.RegisterEnum("protobuf.AudioMessage_AudioType", AudioMessage_AudioType_name, AudioMessage_AudioType_value) + proto.RegisterEnum("protobuf.UnfurledLink_LinkType", UnfurledLink_LinkType_name, UnfurledLink_LinkType_value) + proto.RegisterEnum("protobuf.ChatMessage_ContentType", ChatMessage_ContentType_name, ChatMessage_ContentType_value) + proto.RegisterType((*StickerMessage)(nil), "protobuf.StickerMessage") + proto.RegisterType((*ImageMessage)(nil), "protobuf.ImageMessage") + proto.RegisterType((*AudioMessage)(nil), "protobuf.AudioMessage") + proto.RegisterType((*EditMessage)(nil), "protobuf.EditMessage") + proto.RegisterType((*DeleteMessage)(nil), "protobuf.DeleteMessage") + proto.RegisterType((*SyncDeleteForMeMessage)(nil), "protobuf.SyncDeleteForMeMessage") + proto.RegisterType((*DiscordMessage)(nil), "protobuf.DiscordMessage") + proto.RegisterType((*DiscordMessageAuthor)(nil), "protobuf.DiscordMessageAuthor") + proto.RegisterType((*DiscordMessageReference)(nil), "protobuf.DiscordMessageReference") + proto.RegisterType((*DiscordMessageAttachment)(nil), "protobuf.DiscordMessageAttachment") + proto.RegisterType((*BridgeMessage)(nil), "protobuf.BridgeMessage") + proto.RegisterType((*UnfurledLinkThumbnail)(nil), "protobuf.UnfurledLinkThumbnail") + proto.RegisterType((*UnfurledLink)(nil), "protobuf.UnfurledLink") + proto.RegisterType((*UnfurledStatusContactLink)(nil), "protobuf.UnfurledStatusContactLink") + proto.RegisterType((*UnfurledStatusCommunityLink)(nil), "protobuf.UnfurledStatusCommunityLink") + proto.RegisterType((*UnfurledStatusChannelLink)(nil), "protobuf.UnfurledStatusChannelLink") + proto.RegisterType((*UnfurledStatusLink)(nil), "protobuf.UnfurledStatusLink") + proto.RegisterType((*UnfurledStatusLinks)(nil), "protobuf.UnfurledStatusLinks") + proto.RegisterType((*ChatMessage)(nil), "protobuf.ChatMessage") +} + +func init() { + proto.RegisterFile("chat_message.proto", fileDescriptor_263952f55fd35689) +} + +var fileDescriptor_263952f55fd35689 = []byte{ + // 1958 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0xdd, 0x72, 0xdb, 0x5a, + 0x15, 0x8e, 0xff, 0xe3, 0x25, 0xdb, 0xd1, 0xd9, 0x4d, 0x53, 0xb7, 0x34, 0x6d, 0xaa, 0xf6, 0x4c, + 0xc3, 0x00, 0x61, 0x26, 0x3d, 0xc0, 0x99, 0x61, 0x98, 0x83, 0x62, 0xab, 0x8d, 0x68, 0xed, 0xf8, + 0x6c, 0xcb, 0x3d, 0x94, 0x1b, 0x8d, 0x2c, 0xed, 0xc4, 0x22, 0xb6, 0x64, 0xf4, 0x03, 0x98, 0x57, + 0xe1, 0x19, 0x80, 0x1b, 0x86, 0xc7, 0x60, 0xb8, 0xe1, 0x11, 0xe0, 0x09, 0xb8, 0xe2, 0x8a, 0xd9, + 0x3f, 0xfa, 0x73, 0xec, 0xe4, 0xb4, 0xc3, 0x95, 0xf7, 0x5a, 0x7b, 0xad, 0xa5, 0xf5, 0xb7, 0xd7, + 0xfe, 0xb6, 0x01, 0xd9, 0x33, 0x2b, 0x32, 0x17, 0x24, 0x0c, 0xad, 0x2b, 0x72, 0xb2, 0x0c, 0xfc, + 0xc8, 0x47, 0xbb, 0xec, 0x67, 0x1a, 0x5f, 0x3e, 0x92, 0x88, 0x17, 0x2f, 0x42, 0xce, 0x7e, 0xd4, + 0xb6, 0x7d, 0x2f, 0xb2, 0xec, 0x48, 0x90, 0x52, 0x38, 0xb3, 0x02, 0x87, 0x13, 0xca, 0x97, 0xd0, + 0x19, 0x47, 0xae, 0x7d, 0x4d, 0x82, 0x01, 0x37, 0x85, 0x10, 0x54, 0x67, 0x56, 0x38, 0xeb, 0x96, + 0x8e, 0x4a, 0xc7, 0x4d, 0xcc, 0xd6, 0x94, 0xb7, 0xb4, 0xec, 0xeb, 0x6e, 0xf9, 0xa8, 0x74, 0x5c, + 0xc3, 0x6c, 0xad, 0xfc, 0xbd, 0x04, 0x2d, 0x7d, 0x61, 0x5d, 0x91, 0x44, 0xb1, 0x0b, 0x8d, 0xa5, + 0xb5, 0x9a, 0xfb, 0x96, 0xc3, 0x74, 0x5b, 0x38, 0x21, 0xd1, 0x0f, 0xa0, 0x7e, 0xe9, 0x07, 0x0b, + 0x2b, 0x62, 0x06, 0x3a, 0xa7, 0xf7, 0x4f, 0x12, 0x47, 0x4f, 0x98, 0x85, 0xd7, 0x6c, 0x13, 0x0b, + 0x21, 0xf4, 0x10, 0x76, 0xad, 0xf9, 0x34, 0x5e, 0x98, 0xae, 0xd3, 0xad, 0x30, 0x2f, 0x1a, 0x8c, + 0xd6, 0x1d, 0xb4, 0x0f, 0xb5, 0xdf, 0xb9, 0x4e, 0x34, 0xeb, 0x56, 0x8f, 0x4a, 0xc7, 0x6d, 0xcc, + 0x09, 0x74, 0x00, 0xf5, 0x19, 0x71, 0xaf, 0x66, 0x51, 0xb7, 0xc6, 0xd8, 0x82, 0x42, 0xdf, 0x07, + 0x24, 0x0c, 0xd1, 0xaf, 0x84, 0xa6, 0xed, 0xc7, 0x5e, 0xd4, 0xad, 0x33, 0x19, 0x99, 0x9b, 0x64, + 0x1b, 0x3d, 0xca, 0x57, 0xfe, 0x56, 0x82, 0x96, 0x1a, 0x3b, 0xae, 0x7f, 0x77, 0x40, 0x5f, 0x40, + 0x35, 0x5a, 0x2d, 0x89, 0x08, 0xe7, 0x28, 0x0b, 0x27, 0xaf, 0xcf, 0x09, 0x63, 0xb5, 0x24, 0x98, + 0x49, 0xa3, 0xa7, 0x20, 0x39, 0x71, 0x60, 0x45, 0xae, 0xef, 0x99, 0x8b, 0x90, 0x85, 0x56, 0xc5, + 0x90, 0xb0, 0x06, 0xa1, 0xf2, 0x23, 0x68, 0xa6, 0x3a, 0xe8, 0x00, 0xd0, 0x64, 0xf8, 0x76, 0x78, + 0xf1, 0xcd, 0xd0, 0x54, 0x27, 0x7d, 0xfd, 0xc2, 0x34, 0x3e, 0x8c, 0x34, 0x79, 0x07, 0x35, 0xa0, + 0xa2, 0xaa, 0x3d, 0xb9, 0xc4, 0x16, 0x03, 0x2c, 0x97, 0x95, 0x3f, 0x56, 0x40, 0xd2, 0x1c, 0x37, + 0x4a, 0xfc, 0xde, 0x87, 0x9a, 0x3d, 0xf7, 0xed, 0x6b, 0xe6, 0x75, 0x15, 0x73, 0x82, 0xd6, 0x30, + 0x22, 0xbf, 0xe7, 0x25, 0x68, 0x62, 0xb6, 0x46, 0x0f, 0xa0, 0xc1, 0xda, 0x28, 0x4d, 0x74, 0x9d, + 0x92, 0xba, 0x83, 0x0e, 0x01, 0x44, 0x6b, 0xd1, 0xbd, 0x2a, 0xdb, 0x6b, 0x0a, 0x8e, 0xee, 0xa0, + 0x2e, 0xd4, 0xae, 0x02, 0xcb, 0xe3, 0xf9, 0x6e, 0x9d, 0x95, 0xbb, 0x25, 0xcc, 0x19, 0xe8, 0x4b, + 0x68, 0x25, 0x8a, 0x2c, 0x43, 0xf5, 0xf5, 0x82, 0x0b, 0x27, 0x59, 0x5a, 0xa4, 0x45, 0x46, 0xa0, + 0x3e, 0xb4, 0x68, 0x9f, 0x12, 0x2f, 0xe2, 0x9a, 0x0d, 0xa6, 0xf9, 0x2c, 0xd3, 0xec, 0xcd, 0xac, + 0x24, 0xc4, 0x93, 0x1e, 0x97, 0xe4, 0x56, 0xec, 0x8c, 0x40, 0x3f, 0x83, 0x4e, 0xec, 0x5d, 0xc6, + 0xc1, 0x9c, 0x38, 0xe6, 0xdc, 0xf5, 0xae, 0xc3, 0xee, 0xee, 0x51, 0xe5, 0x58, 0x3a, 0x3d, 0xc8, + 0xec, 0x4c, 0xc4, 0xfe, 0x3b, 0xd7, 0xbb, 0xc6, 0xed, 0x38, 0x47, 0x85, 0xe8, 0x6b, 0xb8, 0x9f, + 0xaa, 0x87, 0x91, 0x15, 0xc5, 0xa1, 0xb0, 0xd2, 0x3c, 0x2a, 0x1d, 0x4b, 0xa7, 0x87, 0x37, 0xad, + 0x8c, 0x99, 0x14, 0xd3, 0xc6, 0xf7, 0xe2, 0x9b, 0x4c, 0xe5, 0x1f, 0x25, 0x68, 0xf7, 0xc9, 0x9c, + 0x44, 0xe4, 0xf6, 0xfa, 0xe4, 0x6a, 0x51, 0xbe, 0xa5, 0x16, 0x95, 0xad, 0xb5, 0xa8, 0xde, 0x55, + 0x8b, 0xda, 0xb7, 0xae, 0xc5, 0x21, 0x80, 0xc3, 0x5c, 0x76, 0xcc, 0xe9, 0x8a, 0xd5, 0xb0, 0x89, + 0x9b, 0x82, 0x73, 0xb6, 0x52, 0x06, 0x70, 0x30, 0x5e, 0x79, 0x36, 0x8f, 0xea, 0xb5, 0x1f, 0x0c, + 0xee, 0x08, 0xad, 0x18, 0x41, 0x79, 0x2d, 0x02, 0xe5, 0x9f, 0x65, 0xe8, 0xf4, 0xdd, 0xd0, 0xf6, + 0x03, 0x27, 0xb1, 0xd3, 0x81, 0xb2, 0xeb, 0x88, 0x11, 0x54, 0x76, 0x1d, 0xd6, 0xbc, 0xc9, 0x81, + 0x6b, 0x8a, 0xe3, 0xf4, 0x18, 0x9a, 0x91, 0xbb, 0x20, 0x61, 0x64, 0x2d, 0x96, 0x49, 0x5a, 0x52, + 0x06, 0x3a, 0x86, 0xbd, 0x94, 0xa0, 0x87, 0x83, 0x24, 0x6d, 0xbc, 0xce, 0xa6, 0xc7, 0x5c, 0x74, + 0x10, 0xcb, 0x50, 0x13, 0x27, 0x24, 0xfa, 0x31, 0xd4, 0xad, 0x38, 0x9a, 0xf9, 0x01, 0x4b, 0x81, + 0x74, 0xfa, 0x24, 0x4b, 0x5d, 0xd1, 0x5f, 0x95, 0x49, 0x61, 0x21, 0x8d, 0xbe, 0x82, 0x66, 0x40, + 0x2e, 0x49, 0x40, 0x3c, 0x9b, 0xf7, 0xb1, 0x94, 0xef, 0xe3, 0xa2, 0x2a, 0x4e, 0x04, 0x71, 0xa6, + 0x83, 0xfa, 0x20, 0x59, 0x51, 0x64, 0xd9, 0xb3, 0x05, 0xf1, 0xa2, 0xa4, 0x85, 0x95, 0xad, 0x5f, + 0x4f, 0x45, 0x71, 0x5e, 0x4d, 0xf9, 0x77, 0x09, 0xf6, 0x37, 0xf9, 0xb9, 0x29, 0xbb, 0x9e, 0xb5, + 0x48, 0xb3, 0x4b, 0xd7, 0xe8, 0x05, 0xb4, 0x1d, 0x37, 0xb4, 0x03, 0x77, 0xe1, 0x7a, 0x56, 0xe4, + 0x07, 0x22, 0xc3, 0x45, 0x26, 0x7a, 0x04, 0xbb, 0x9e, 0x6b, 0x5f, 0x33, 0x6d, 0x9e, 0xde, 0x94, + 0xa6, 0xf5, 0xb1, 0x7e, 0x6b, 0x45, 0x56, 0x30, 0x09, 0xe6, 0x22, 0xb3, 0x19, 0x03, 0x9d, 0x00, + 0xe2, 0x04, 0x1b, 0xc1, 0x23, 0x31, 0x67, 0xeb, 0x6c, 0xce, 0x6e, 0xd8, 0xa1, 0x5f, 0x9a, 0xfb, + 0xb6, 0x35, 0xa7, 0xc6, 0x1a, 0xfc, 0x4b, 0x09, 0xad, 0xf8, 0xf0, 0x60, 0x4b, 0x52, 0xa9, 0x13, + 0x69, 0xa3, 0x89, 0x88, 0x73, 0x67, 0xe7, 0x31, 0x34, 0xed, 0x99, 0xe5, 0x79, 0x64, 0xae, 0xa7, + 0x7d, 0x99, 0x32, 0x68, 0x63, 0x5c, 0xc5, 0xee, 0xdc, 0xd1, 0xd3, 0x6b, 0x48, 0x90, 0xca, 0x7f, + 0x4a, 0xd0, 0xdd, 0x56, 0x83, 0x1b, 0xd9, 0x2d, 0xb8, 0xb0, 0xde, 0xfc, 0x48, 0x86, 0x4a, 0x1c, + 0xcc, 0xc5, 0x07, 0xe8, 0x92, 0x46, 0x7a, 0xe9, 0xce, 0xc9, 0x30, 0x97, 0xd3, 0x84, 0xa6, 0x55, + 0xa1, 0xeb, 0xb1, 0xfb, 0x07, 0x72, 0xb6, 0x8a, 0x48, 0xc8, 0xf2, 0x5a, 0xc5, 0x45, 0x26, 0x3a, + 0x82, 0xfc, 0x4c, 0x14, 0xe7, 0xb7, 0x30, 0x26, 0x73, 0x57, 0x5b, 0xa3, 0x78, 0xb5, 0xe5, 0xf3, + 0xbc, 0xbb, 0x96, 0xe7, 0x7f, 0x95, 0xa0, 0x7d, 0x16, 0xb8, 0x4e, 0x76, 0xe7, 0x3f, 0x01, 0x98, + 0x32, 0x06, 0xf3, 0x96, 0xc7, 0x9c, 0xe3, 0x50, 0x6b, 0x71, 0x48, 0x82, 0x61, 0xd6, 0x5d, 0x29, + 0x4d, 0x75, 0xe9, 0x5a, 0x65, 0xb5, 0x16, 0x09, 0xc8, 0x71, 0xe8, 0xad, 0x4e, 0x29, 0xbd, 0x2f, + 0xb2, 0x20, 0xa8, 0x5b, 0xce, 0x6b, 0x2e, 0xd3, 0xfd, 0x64, 0x6a, 0xa5, 0x0c, 0x3a, 0x11, 0x96, + 0x56, 0x40, 0xbc, 0xe4, 0x12, 0xd1, 0xfb, 0xa2, 0x91, 0xd6, 0xd9, 0x8a, 0x09, 0xf7, 0xf3, 0x97, + 0x84, 0x31, 0x8b, 0x17, 0x53, 0xcf, 0x72, 0xe7, 0xb7, 0x20, 0x82, 0x14, 0x98, 0x94, 0x37, 0x03, + 0x93, 0x4a, 0x1e, 0x98, 0x28, 0x7f, 0x29, 0x43, 0x2b, 0xff, 0x85, 0xa4, 0x0b, 0x4a, 0x59, 0x17, + 0xec, 0x43, 0x2d, 0x72, 0xa3, 0x79, 0x92, 0x36, 0x4e, 0xd0, 0xca, 0x3a, 0x84, 0x1e, 0xc0, 0x25, + 0x85, 0x0c, 0x22, 0x69, 0x79, 0x16, 0xfa, 0x1e, 0x7c, 0x16, 0x25, 0xfe, 0x9a, 0x89, 0xb3, 0xec, + 0x6a, 0xc0, 0x72, 0xba, 0x91, 0x1c, 0xaa, 0x97, 0xb0, 0x97, 0x09, 0x73, 0xff, 0x39, 0x82, 0xea, + 0xa4, 0xec, 0x6f, 0x58, 0x20, 0xdf, 0x85, 0x4c, 0xd9, 0x14, 0x21, 0x71, 0x1c, 0x95, 0x19, 0x38, + 0xe7, 0xa0, 0xeb, 0x95, 0x18, 0xd5, 0xfc, 0xfe, 0x7e, 0xba, 0xf9, 0xde, 0x3d, 0x61, 0x79, 0x4d, + 0xa1, 0x91, 0xf2, 0x14, 0x76, 0x13, 0x0e, 0xda, 0x85, 0xea, 0x3b, 0x7d, 0xf8, 0x56, 0xde, 0x41, + 0x4d, 0xa8, 0xe9, 0x03, 0xf5, 0x8d, 0x26, 0x97, 0x94, 0xbf, 0x96, 0xe0, 0x61, 0xf1, 0xca, 0xed, + 0x71, 0x50, 0xcb, 0xd2, 0x77, 0x08, 0xb0, 0x8c, 0xa7, 0x73, 0xd7, 0x36, 0xaf, 0xc9, 0x4a, 0x94, + 0xa6, 0xc9, 0x39, 0x6f, 0xc9, 0x0a, 0x3d, 0x83, 0x96, 0xe3, 0x86, 0xcb, 0xb9, 0xb5, 0x32, 0x73, + 0x73, 0x4e, 0x12, 0x3c, 0xd6, 0x8c, 0x77, 0x27, 0xf6, 0x15, 0x54, 0x5d, 0xdb, 0xf7, 0x58, 0x2e, + 0xa5, 0x6d, 0x71, 0xa5, 0xad, 0x82, 0x99, 0xb0, 0xf2, 0xe7, 0x32, 0x7c, 0x67, 0xdd, 0xed, 0xc5, + 0x22, 0xf6, 0xdc, 0x68, 0xc5, 0x1c, 0x7f, 0x46, 0x41, 0x8f, 0x60, 0x98, 0x6e, 0xd2, 0x55, 0x52, + 0xca, 0xd3, 0x9d, 0xff, 0x8f, 0xf3, 0xcf, 0xa1, 0xbd, 0x20, 0x8b, 0x29, 0x09, 0x12, 0x10, 0xcc, + 0xf1, 0x73, 0x4b, 0x30, 0x19, 0x00, 0x66, 0x97, 0xb7, 0x3f, 0xf7, 0x03, 0x71, 0xac, 0x38, 0x91, + 0xc6, 0xdd, 0xf8, 0x88, 0xb8, 0xd1, 0x4f, 0xa0, 0x3e, 0xa5, 0x63, 0x34, 0x60, 0x33, 0xe4, 0x5b, + 0xa8, 0x09, 0x71, 0x3a, 0x59, 0xd7, 0xeb, 0xcc, 0xe7, 0x71, 0x9a, 0x2e, 0x4e, 0x9a, 0x71, 0x9c, + 0x0e, 0x59, 0x49, 0xf0, 0x26, 0xb1, 0xcb, 0x0e, 0x22, 0x59, 0xf8, 0xbf, 0x76, 0x93, 0x73, 0xc3, + 0x88, 0x1b, 0x49, 0xac, 0xdc, 0x99, 0xc4, 0xea, 0xcd, 0x24, 0x6e, 0xce, 0x4f, 0x0f, 0x9a, 0x69, + 0xb9, 0x04, 0x4e, 0xf8, 0x7c, 0x1b, 0x4c, 0x2c, 0x14, 0x1f, 0x67, 0x7a, 0xca, 0x7f, 0x4b, 0x80, + 0x6e, 0x22, 0xca, 0x0d, 0x63, 0xe1, 0x2b, 0x3e, 0xfc, 0x2c, 0x9b, 0x03, 0x79, 0xe9, 0xf4, 0xf9, + 0xf6, 0x6f, 0xa5, 0xe7, 0xe3, 0x7c, 0x07, 0x27, 0x5a, 0x48, 0xcb, 0xbb, 0x5b, 0xf9, 0x08, 0x77, + 0xcf, 0x77, 0x72, 0x0e, 0x33, 0x3f, 0x78, 0xd6, 0xc5, 0x81, 0xd8, 0xee, 0x47, 0x56, 0x3f, 0xe6, + 0x07, 0x27, 0xcf, 0x9a, 0xe9, 0x28, 0x55, 0xae, 0xe0, 0xde, 0x06, 0x34, 0x8d, 0x46, 0xdb, 0xb0, + 0x78, 0x89, 0xc1, 0xa1, 0xc7, 0xb7, 0x61, 0xf1, 0xcd, 0x50, 0xfc, 0x4f, 0x12, 0x48, 0xb9, 0x57, + 0xc4, 0x16, 0xb4, 0x5a, 0xc0, 0x95, 0x65, 0xb6, 0x93, 0xc3, 0x95, 0xc9, 0x33, 0xaa, 0x92, 0x7b, + 0x46, 0x3d, 0x05, 0x29, 0x20, 0xe1, 0xd2, 0xf7, 0x42, 0x62, 0x46, 0xbe, 0x68, 0x1d, 0x48, 0x58, + 0x86, 0x4f, 0x5f, 0xb4, 0xc4, 0x0b, 0x79, 0xeb, 0x89, 0x3b, 0x8b, 0x78, 0x21, 0x6b, 0xbb, 0x1c, + 0xec, 0xaf, 0x17, 0x60, 0xff, 0x3a, 0x7a, 0x6f, 0x7c, 0xf2, 0x4b, 0x6a, 0xf7, 0x93, 0x5e, 0x52, + 0x5f, 0x40, 0x23, 0xe4, 0xff, 0x0c, 0x88, 0xc7, 0x4f, 0x37, 0x33, 0x50, 0xfc, 0xcb, 0x80, 0x96, + 0x55, 0x88, 0xa2, 0x13, 0xa8, 0xb1, 0xc7, 0x76, 0x17, 0x98, 0xce, 0xc1, 0xda, 0x4b, 0x3f, 0xd3, + 0xe0, 0x62, 0x54, 0xde, 0xa2, 0x4f, 0xde, 0xae, 0xb4, 0x2e, 0x9f, 0x7f, 0x4a, 0x53, 0x79, 0x26, + 0x86, 0x9e, 0xe4, 0xdb, 0xb7, 0x45, 0xa7, 0x65, 0xb1, 0x2f, 0x7b, 0xb0, 0xe7, 0x70, 0x60, 0x96, + 0xfc, 0x37, 0xd2, 0xb5, 0xd7, 0xbd, 0x2f, 0x22, 0xb7, 0xf3, 0x1d, 0xdc, 0x71, 0x8a, 0xaf, 0x8f, + 0x9f, 0x43, 0x87, 0x63, 0x98, 0xd4, 0x86, 0xc3, 0x6c, 0x3c, 0xc8, 0x6c, 0x14, 0x60, 0xd0, 0xf9, + 0x0e, 0x6e, 0x4f, 0x0b, 0xb8, 0x28, 0x7d, 0x94, 0xb5, 0xd7, 0x1f, 0x65, 0xeb, 0x93, 0xa8, 0x73, + 0x73, 0x12, 0x2d, 0xe1, 0x48, 0x9c, 0x56, 0x33, 0x20, 0xbf, 0x89, 0x49, 0x18, 0x99, 0xcb, 0xc0, + 0x5f, 0x5a, 0x57, 0x56, 0x24, 0x8e, 0x02, 0xe9, 0xee, 0x31, 0x87, 0x5e, 0xe6, 0x6a, 0xca, 0x35, + 0x30, 0x57, 0x18, 0xa5, 0xf2, 0xb4, 0xff, 0x09, 0x3e, 0xb4, 0x6f, 0xdb, 0xde, 0xf0, 0x6a, 0x96, + 0x3f, 0xe6, 0xd5, 0xfc, 0x39, 0xd4, 0xd8, 0x7f, 0x4a, 0xdd, 0xcf, 0x98, 0x57, 0x7b, 0xb9, 0x46, + 0xa1, 0x6c, 0xcc, 0x77, 0xb7, 0x3f, 0xae, 0xd1, 0xa7, 0x3f, 0xae, 0x2b, 0x20, 0xf5, 0x0a, 0xb8, + 0x76, 0x3f, 0xf9, 0xd3, 0xa4, 0x77, 0x31, 0x34, 0xb4, 0xa1, 0x91, 0xfc, 0x6d, 0xd2, 0x01, 0x30, + 0xb4, 0x5f, 0x1a, 0xe6, 0xe8, 0x9d, 0xaa, 0x0f, 0xe5, 0x12, 0x92, 0xa0, 0x31, 0x36, 0xf4, 0xde, + 0x5b, 0x0d, 0xcb, 0x65, 0x04, 0x50, 0x1f, 0x1b, 0xaa, 0x31, 0x19, 0xcb, 0x15, 0x0a, 0x3a, 0xb4, + 0xc1, 0xc5, 0x2f, 0x74, 0xb9, 0x8a, 0x1e, 0xc0, 0x3d, 0x03, 0xab, 0xc3, 0xb1, 0xda, 0x33, 0xf4, + 0x0b, 0x6a, 0x71, 0x30, 0x50, 0x87, 0x7d, 0xb9, 0x86, 0x8e, 0xe1, 0xc5, 0xf8, 0xc3, 0xd8, 0xd0, + 0x06, 0xe6, 0x40, 0x1b, 0x8f, 0xd5, 0x37, 0x5a, 0xfa, 0xb5, 0x11, 0xd6, 0xdf, 0xab, 0x86, 0x66, + 0xbe, 0xc1, 0x17, 0x93, 0x91, 0x5c, 0xcf, 0x20, 0x4c, 0x83, 0x2e, 0xd9, 0x1f, 0x39, 0xf2, 0x2e, + 0x6a, 0x43, 0x93, 0x1a, 0x9b, 0x0c, 0x75, 0xe3, 0x83, 0xdc, 0x44, 0x07, 0x80, 0xd6, 0xcc, 0xbd, + 0x51, 0x47, 0x32, 0xa0, 0x7b, 0xb0, 0x47, 0xed, 0xaa, 0x3d, 0xc3, 0xc4, 0xda, 0xd7, 0x13, 0x6d, + 0x6c, 0xc8, 0x12, 0x65, 0xf6, 0xf5, 0x71, 0xef, 0x02, 0xf7, 0x13, 0x69, 0xb9, 0x85, 0x1e, 0xc2, + 0x7d, 0xbd, 0xaf, 0x0d, 0x0d, 0xdd, 0xf8, 0x60, 0xbe, 0xd7, 0xb0, 0xfe, 0x5a, 0xef, 0xa9, 0xd4, + 0x67, 0xb9, 0x8d, 0x9e, 0xc1, 0xe1, 0x9a, 0xf1, 0x91, 0x3e, 0x1c, 0x6a, 0x99, 0x76, 0x07, 0xbd, + 0x80, 0xa3, 0x35, 0x91, 0xc1, 0xc4, 0x98, 0xa8, 0xef, 0x4c, 0xed, 0x3d, 0x8d, 0x69, 0xac, 0x0d, + 0x0d, 0x79, 0x6f, 0x43, 0xd0, 0x05, 0x29, 0xb5, 0xd7, 0xd3, 0x46, 0x86, 0xd6, 0x97, 0x65, 0xf4, + 0x12, 0x9e, 0xdf, 0x26, 0x89, 0xb5, 0xc1, 0xc5, 0x7b, 0xad, 0x2f, 0x7f, 0x86, 0x10, 0x74, 0xce, + 0xb0, 0xde, 0xa7, 0x02, 0xc2, 0x19, 0x94, 0xbb, 0x18, 0xce, 0xda, 0xbf, 0x92, 0x4e, 0x7e, 0xf8, + 0xd3, 0xa4, 0x2b, 0xa6, 0x75, 0xb6, 0x7a, 0xf5, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbe, 0xb4, + 0xbd, 0x0d, 0xfb, 0x14, 0x00, 0x00, } diff --git a/protocol/protobuf/command.pb.go b/protocol/protobuf/command.pb.go index 3257dc63c..8864b4b70 100644 --- a/protocol/protobuf/command.pb.go +++ b/protocol/protobuf/command.pb.go @@ -1,630 +1,435 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: command.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type RequestAddressForTransaction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"` - ChatId string `protobuf:"bytes,4,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"` + ChatId string `protobuf:"bytes,4,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *RequestAddressForTransaction) Reset() { - *x = RequestAddressForTransaction{} - if protoimpl.UnsafeEnabled { - mi := &file_command_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestAddressForTransaction) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestAddressForTransaction) ProtoMessage() {} - -func (x *RequestAddressForTransaction) ProtoReflect() protoreflect.Message { - mi := &file_command_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RequestAddressForTransaction.ProtoReflect.Descriptor instead. +func (m *RequestAddressForTransaction) Reset() { *m = RequestAddressForTransaction{} } +func (m *RequestAddressForTransaction) String() string { return proto.CompactTextString(m) } +func (*RequestAddressForTransaction) ProtoMessage() {} func (*RequestAddressForTransaction) Descriptor() ([]byte, []int) { - return file_command_proto_rawDescGZIP(), []int{0} + return fileDescriptor_213c0bb044472049, []int{0} } -func (x *RequestAddressForTransaction) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *RequestAddressForTransaction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RequestAddressForTransaction.Unmarshal(m, b) +} +func (m *RequestAddressForTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RequestAddressForTransaction.Marshal(b, m, deterministic) +} +func (m *RequestAddressForTransaction) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestAddressForTransaction.Merge(m, src) +} +func (m *RequestAddressForTransaction) XXX_Size() int { + return xxx_messageInfo_RequestAddressForTransaction.Size(m) +} +func (m *RequestAddressForTransaction) XXX_DiscardUnknown() { + xxx_messageInfo_RequestAddressForTransaction.DiscardUnknown(m) +} + +var xxx_messageInfo_RequestAddressForTransaction proto.InternalMessageInfo + +func (m *RequestAddressForTransaction) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *RequestAddressForTransaction) GetValue() string { - if x != nil { - return x.Value +func (m *RequestAddressForTransaction) GetValue() string { + if m != nil { + return m.Value } return "" } -func (x *RequestAddressForTransaction) GetContract() string { - if x != nil { - return x.Contract +func (m *RequestAddressForTransaction) GetContract() string { + if m != nil { + return m.Contract } return "" } -func (x *RequestAddressForTransaction) GetChatId() string { - if x != nil { - return x.ChatId +func (m *RequestAddressForTransaction) GetChatId() string { + if m != nil { + return m.ChatId } return "" } type AcceptRequestAddressForTransaction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` - ChatId string `protobuf:"bytes,4,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` + ChatId string `protobuf:"bytes,4,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AcceptRequestAddressForTransaction) Reset() { - *x = AcceptRequestAddressForTransaction{} - if protoimpl.UnsafeEnabled { - mi := &file_command_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AcceptRequestAddressForTransaction) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AcceptRequestAddressForTransaction) ProtoMessage() {} - -func (x *AcceptRequestAddressForTransaction) ProtoReflect() protoreflect.Message { - mi := &file_command_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AcceptRequestAddressForTransaction.ProtoReflect.Descriptor instead. +func (m *AcceptRequestAddressForTransaction) Reset() { *m = AcceptRequestAddressForTransaction{} } +func (m *AcceptRequestAddressForTransaction) String() string { return proto.CompactTextString(m) } +func (*AcceptRequestAddressForTransaction) ProtoMessage() {} func (*AcceptRequestAddressForTransaction) Descriptor() ([]byte, []int) { - return file_command_proto_rawDescGZIP(), []int{1} + return fileDescriptor_213c0bb044472049, []int{1} } -func (x *AcceptRequestAddressForTransaction) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *AcceptRequestAddressForTransaction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AcceptRequestAddressForTransaction.Unmarshal(m, b) +} +func (m *AcceptRequestAddressForTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AcceptRequestAddressForTransaction.Marshal(b, m, deterministic) +} +func (m *AcceptRequestAddressForTransaction) XXX_Merge(src proto.Message) { + xxx_messageInfo_AcceptRequestAddressForTransaction.Merge(m, src) +} +func (m *AcceptRequestAddressForTransaction) XXX_Size() int { + return xxx_messageInfo_AcceptRequestAddressForTransaction.Size(m) +} +func (m *AcceptRequestAddressForTransaction) XXX_DiscardUnknown() { + xxx_messageInfo_AcceptRequestAddressForTransaction.DiscardUnknown(m) +} + +var xxx_messageInfo_AcceptRequestAddressForTransaction proto.InternalMessageInfo + +func (m *AcceptRequestAddressForTransaction) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *AcceptRequestAddressForTransaction) GetId() string { - if x != nil { - return x.Id +func (m *AcceptRequestAddressForTransaction) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *AcceptRequestAddressForTransaction) GetAddress() string { - if x != nil { - return x.Address +func (m *AcceptRequestAddressForTransaction) GetAddress() string { + if m != nil { + return m.Address } return "" } -func (x *AcceptRequestAddressForTransaction) GetChatId() string { - if x != nil { - return x.ChatId +func (m *AcceptRequestAddressForTransaction) GetChatId() string { + if m != nil { + return m.ChatId } return "" } type DeclineRequestAddressForTransaction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *DeclineRequestAddressForTransaction) Reset() { - *x = DeclineRequestAddressForTransaction{} - if protoimpl.UnsafeEnabled { - mi := &file_command_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeclineRequestAddressForTransaction) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeclineRequestAddressForTransaction) ProtoMessage() {} - -func (x *DeclineRequestAddressForTransaction) ProtoReflect() protoreflect.Message { - mi := &file_command_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeclineRequestAddressForTransaction.ProtoReflect.Descriptor instead. +func (m *DeclineRequestAddressForTransaction) Reset() { *m = DeclineRequestAddressForTransaction{} } +func (m *DeclineRequestAddressForTransaction) String() string { return proto.CompactTextString(m) } +func (*DeclineRequestAddressForTransaction) ProtoMessage() {} func (*DeclineRequestAddressForTransaction) Descriptor() ([]byte, []int) { - return file_command_proto_rawDescGZIP(), []int{2} + return fileDescriptor_213c0bb044472049, []int{2} } -func (x *DeclineRequestAddressForTransaction) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *DeclineRequestAddressForTransaction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeclineRequestAddressForTransaction.Unmarshal(m, b) +} +func (m *DeclineRequestAddressForTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeclineRequestAddressForTransaction.Marshal(b, m, deterministic) +} +func (m *DeclineRequestAddressForTransaction) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeclineRequestAddressForTransaction.Merge(m, src) +} +func (m *DeclineRequestAddressForTransaction) XXX_Size() int { + return xxx_messageInfo_DeclineRequestAddressForTransaction.Size(m) +} +func (m *DeclineRequestAddressForTransaction) XXX_DiscardUnknown() { + xxx_messageInfo_DeclineRequestAddressForTransaction.DiscardUnknown(m) +} + +var xxx_messageInfo_DeclineRequestAddressForTransaction proto.InternalMessageInfo + +func (m *DeclineRequestAddressForTransaction) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *DeclineRequestAddressForTransaction) GetId() string { - if x != nil { - return x.Id +func (m *DeclineRequestAddressForTransaction) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *DeclineRequestAddressForTransaction) GetChatId() string { - if x != nil { - return x.ChatId +func (m *DeclineRequestAddressForTransaction) GetChatId() string { + if m != nil { + return m.ChatId } return "" } type DeclineRequestTransaction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *DeclineRequestTransaction) Reset() { - *x = DeclineRequestTransaction{} - if protoimpl.UnsafeEnabled { - mi := &file_command_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeclineRequestTransaction) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeclineRequestTransaction) ProtoMessage() {} - -func (x *DeclineRequestTransaction) ProtoReflect() protoreflect.Message { - mi := &file_command_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeclineRequestTransaction.ProtoReflect.Descriptor instead. +func (m *DeclineRequestTransaction) Reset() { *m = DeclineRequestTransaction{} } +func (m *DeclineRequestTransaction) String() string { return proto.CompactTextString(m) } +func (*DeclineRequestTransaction) ProtoMessage() {} func (*DeclineRequestTransaction) Descriptor() ([]byte, []int) { - return file_command_proto_rawDescGZIP(), []int{3} + return fileDescriptor_213c0bb044472049, []int{3} } -func (x *DeclineRequestTransaction) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *DeclineRequestTransaction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeclineRequestTransaction.Unmarshal(m, b) +} +func (m *DeclineRequestTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeclineRequestTransaction.Marshal(b, m, deterministic) +} +func (m *DeclineRequestTransaction) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeclineRequestTransaction.Merge(m, src) +} +func (m *DeclineRequestTransaction) XXX_Size() int { + return xxx_messageInfo_DeclineRequestTransaction.Size(m) +} +func (m *DeclineRequestTransaction) XXX_DiscardUnknown() { + xxx_messageInfo_DeclineRequestTransaction.DiscardUnknown(m) +} + +var xxx_messageInfo_DeclineRequestTransaction proto.InternalMessageInfo + +func (m *DeclineRequestTransaction) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *DeclineRequestTransaction) GetId() string { - if x != nil { - return x.Id +func (m *DeclineRequestTransaction) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *DeclineRequestTransaction) GetChatId() string { - if x != nil { - return x.ChatId +func (m *DeclineRequestTransaction) GetChatId() string { + if m != nil { + return m.ChatId } return "" } type RequestTransaction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - Contract string `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"` - ChatId string `protobuf:"bytes,5,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + Contract string `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"` + ChatId string `protobuf:"bytes,5,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *RequestTransaction) Reset() { - *x = RequestTransaction{} - if protoimpl.UnsafeEnabled { - mi := &file_command_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestTransaction) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestTransaction) ProtoMessage() {} - -func (x *RequestTransaction) ProtoReflect() protoreflect.Message { - mi := &file_command_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RequestTransaction.ProtoReflect.Descriptor instead. +func (m *RequestTransaction) Reset() { *m = RequestTransaction{} } +func (m *RequestTransaction) String() string { return proto.CompactTextString(m) } +func (*RequestTransaction) ProtoMessage() {} func (*RequestTransaction) Descriptor() ([]byte, []int) { - return file_command_proto_rawDescGZIP(), []int{4} + return fileDescriptor_213c0bb044472049, []int{4} } -func (x *RequestTransaction) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *RequestTransaction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RequestTransaction.Unmarshal(m, b) +} +func (m *RequestTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RequestTransaction.Marshal(b, m, deterministic) +} +func (m *RequestTransaction) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestTransaction.Merge(m, src) +} +func (m *RequestTransaction) XXX_Size() int { + return xxx_messageInfo_RequestTransaction.Size(m) +} +func (m *RequestTransaction) XXX_DiscardUnknown() { + xxx_messageInfo_RequestTransaction.DiscardUnknown(m) +} + +var xxx_messageInfo_RequestTransaction proto.InternalMessageInfo + +func (m *RequestTransaction) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *RequestTransaction) GetAddress() string { - if x != nil { - return x.Address +func (m *RequestTransaction) GetAddress() string { + if m != nil { + return m.Address } return "" } -func (x *RequestTransaction) GetValue() string { - if x != nil { - return x.Value +func (m *RequestTransaction) GetValue() string { + if m != nil { + return m.Value } return "" } -func (x *RequestTransaction) GetContract() string { - if x != nil { - return x.Contract +func (m *RequestTransaction) GetContract() string { + if m != nil { + return m.Contract } return "" } -func (x *RequestTransaction) GetChatId() string { - if x != nil { - return x.ChatId +func (m *RequestTransaction) GetChatId() string { + if m != nil { + return m.ChatId } return "" } type SendTransaction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - TransactionHash string `protobuf:"bytes,3,opt,name=transaction_hash,json=transactionHash,proto3" json:"transaction_hash,omitempty"` - Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` - ChatId string `protobuf:"bytes,5,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + TransactionHash string `protobuf:"bytes,3,opt,name=transaction_hash,json=transactionHash,proto3" json:"transaction_hash,omitempty"` + Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` + ChatId string `protobuf:"bytes,5,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SendTransaction) Reset() { - *x = SendTransaction{} - if protoimpl.UnsafeEnabled { - mi := &file_command_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendTransaction) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendTransaction) ProtoMessage() {} - -func (x *SendTransaction) ProtoReflect() protoreflect.Message { - mi := &file_command_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendTransaction.ProtoReflect.Descriptor instead. +func (m *SendTransaction) Reset() { *m = SendTransaction{} } +func (m *SendTransaction) String() string { return proto.CompactTextString(m) } +func (*SendTransaction) ProtoMessage() {} func (*SendTransaction) Descriptor() ([]byte, []int) { - return file_command_proto_rawDescGZIP(), []int{5} + return fileDescriptor_213c0bb044472049, []int{5} } -func (x *SendTransaction) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *SendTransaction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SendTransaction.Unmarshal(m, b) +} +func (m *SendTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SendTransaction.Marshal(b, m, deterministic) +} +func (m *SendTransaction) XXX_Merge(src proto.Message) { + xxx_messageInfo_SendTransaction.Merge(m, src) +} +func (m *SendTransaction) XXX_Size() int { + return xxx_messageInfo_SendTransaction.Size(m) +} +func (m *SendTransaction) XXX_DiscardUnknown() { + xxx_messageInfo_SendTransaction.DiscardUnknown(m) +} + +var xxx_messageInfo_SendTransaction proto.InternalMessageInfo + +func (m *SendTransaction) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *SendTransaction) GetId() string { - if x != nil { - return x.Id +func (m *SendTransaction) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *SendTransaction) GetTransactionHash() string { - if x != nil { - return x.TransactionHash +func (m *SendTransaction) GetTransactionHash() string { + if m != nil { + return m.TransactionHash } return "" } -func (x *SendTransaction) GetSignature() []byte { - if x != nil { - return x.Signature +func (m *SendTransaction) GetSignature() []byte { + if m != nil { + return m.Signature } return nil } -func (x *SendTransaction) GetChatId() string { - if x != nil { - return x.ChatId +func (m *SendTransaction) GetChatId() string { + if m != nil { + return m.ChatId } return "" } -var File_command_proto protoreflect.FileDescriptor - -var file_command_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x7f, 0x0a, 0x1c, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x46, 0x6f, 0x72, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, - 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, - 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x22, 0x7d, 0x0a, 0x22, 0x41, 0x63, - 0x63, 0x65, 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x46, 0x6f, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x22, 0x64, 0x0a, 0x23, 0x44, 0x65, 0x63, - 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x46, 0x6f, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x22, - 0x5a, 0x0a, 0x19, 0x44, 0x65, 0x63, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, - 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, - 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x22, 0x8f, 0x01, 0x0a, 0x12, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x22, 0x99, 0x01, - 0x0a, 0x0f, 0x53, 0x65, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x74, 0x72, 0x61, 0x6e, 0x73, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x61, - 0x73, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterType((*RequestAddressForTransaction)(nil), "protobuf.RequestAddressForTransaction") + proto.RegisterType((*AcceptRequestAddressForTransaction)(nil), "protobuf.AcceptRequestAddressForTransaction") + proto.RegisterType((*DeclineRequestAddressForTransaction)(nil), "protobuf.DeclineRequestAddressForTransaction") + proto.RegisterType((*DeclineRequestTransaction)(nil), "protobuf.DeclineRequestTransaction") + proto.RegisterType((*RequestTransaction)(nil), "protobuf.RequestTransaction") + proto.RegisterType((*SendTransaction)(nil), "protobuf.SendTransaction") } -var ( - file_command_proto_rawDescOnce sync.Once - file_command_proto_rawDescData = file_command_proto_rawDesc -) - -func file_command_proto_rawDescGZIP() []byte { - file_command_proto_rawDescOnce.Do(func() { - file_command_proto_rawDescData = protoimpl.X.CompressGZIP(file_command_proto_rawDescData) - }) - return file_command_proto_rawDescData +func init() { + proto.RegisterFile("command.proto", fileDescriptor_213c0bb044472049) } -var file_command_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_command_proto_goTypes = []interface{}{ - (*RequestAddressForTransaction)(nil), // 0: protobuf.RequestAddressForTransaction - (*AcceptRequestAddressForTransaction)(nil), // 1: protobuf.AcceptRequestAddressForTransaction - (*DeclineRequestAddressForTransaction)(nil), // 2: protobuf.DeclineRequestAddressForTransaction - (*DeclineRequestTransaction)(nil), // 3: protobuf.DeclineRequestTransaction - (*RequestTransaction)(nil), // 4: protobuf.RequestTransaction - (*SendTransaction)(nil), // 5: protobuf.SendTransaction -} -var file_command_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_command_proto_init() } -func file_command_proto_init() { - if File_command_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_command_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestAddressForTransaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_command_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AcceptRequestAddressForTransaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_command_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeclineRequestAddressForTransaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_command_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeclineRequestTransaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_command_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestTransaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_command_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendTransaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_command_proto_rawDesc, - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_command_proto_goTypes, - DependencyIndexes: file_command_proto_depIdxs, - MessageInfos: file_command_proto_msgTypes, - }.Build() - File_command_proto = out.File - file_command_proto_rawDesc = nil - file_command_proto_goTypes = nil - file_command_proto_depIdxs = nil +var fileDescriptor_213c0bb044472049 = []byte{ + // 301 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0x3d, 0x4f, 0xf3, 0x30, + 0x10, 0xc7, 0x95, 0x97, 0xbe, 0xdd, 0xf3, 0x94, 0x22, 0x0b, 0x89, 0x80, 0x3a, 0x54, 0x61, 0x29, + 0x4b, 0x19, 0x18, 0x99, 0x8a, 0x10, 0x82, 0x35, 0x30, 0x75, 0xa9, 0xdc, 0xb3, 0x21, 0x16, 0xa9, + 0x5d, 0x6c, 0x87, 0x0d, 0xf1, 0x11, 0x98, 0xf9, 0xb6, 0xa8, 0x4e, 0xda, 0x26, 0x43, 0x24, 0x40, + 0x9d, 0xec, 0xff, 0x9d, 0xee, 0xfe, 0x3f, 0xdf, 0x19, 0xfa, 0xa8, 0x96, 0x4b, 0x2a, 0xd9, 0x64, + 0xa5, 0x95, 0x55, 0xa4, 0xeb, 0x8e, 0x45, 0xfe, 0x14, 0x7f, 0xc0, 0x30, 0xe1, 0xaf, 0x39, 0x37, + 0x76, 0xca, 0x98, 0xe6, 0xc6, 0xdc, 0x2a, 0xfd, 0xa8, 0xa9, 0x34, 0x14, 0xad, 0x50, 0x92, 0x1c, + 0x41, 0x0b, 0x33, 0x85, 0x2f, 0x91, 0x37, 0xf2, 0xc6, 0x61, 0x52, 0x88, 0x75, 0xf4, 0x8d, 0x66, + 0x39, 0x8f, 0xfc, 0x91, 0x37, 0xee, 0x25, 0x85, 0x20, 0xa7, 0xd0, 0x45, 0x25, 0xad, 0xa6, 0x68, + 0xa3, 0xc0, 0x25, 0xb6, 0x9a, 0x1c, 0x43, 0x07, 0x53, 0x6a, 0xe7, 0x82, 0x45, 0xa1, 0x4b, 0xb5, + 0xd7, 0xf2, 0x9e, 0xc5, 0xef, 0x10, 0x4f, 0x11, 0xf9, 0xca, 0xfe, 0x01, 0xe3, 0x00, 0x7c, 0xc1, + 0x4a, 0x06, 0x5f, 0x30, 0x12, 0x41, 0x87, 0x16, 0xe5, 0xa5, 0xff, 0x46, 0x36, 0xdb, 0x33, 0x38, + 0xbb, 0xe1, 0x98, 0x09, 0xc9, 0xf7, 0xe0, 0x5f, 0x71, 0x09, 0x6a, 0x2e, 0x33, 0x38, 0xa9, 0xbb, + 0xec, 0xb1, 0xf7, 0xa7, 0x07, 0xe4, 0xc7, 0x5d, 0x2b, 0x13, 0xf2, 0xeb, 0x13, 0xda, 0xae, 0x34, + 0x68, 0x5a, 0x69, 0xd8, 0xbc, 0xd2, 0x56, 0x8d, 0xe8, 0xcb, 0x83, 0xc1, 0x03, 0x97, 0xec, 0xf7, + 0x8f, 0x3c, 0x87, 0x43, 0xbb, 0x2b, 0x9a, 0xa7, 0xd4, 0xa4, 0x25, 0xcf, 0xa0, 0x12, 0xbf, 0xa3, + 0x26, 0x25, 0x43, 0xe8, 0x19, 0xf1, 0x2c, 0xa9, 0xcd, 0x35, 0x77, 0x68, 0xff, 0x93, 0x5d, 0xa0, + 0x91, 0xed, 0xba, 0x3f, 0xfb, 0x37, 0xb9, 0xb8, 0xda, 0x7c, 0xff, 0x45, 0xdb, 0xdd, 0x2e, 0xbf, + 0x03, 0x00, 0x00, 0xff, 0xff, 0x88, 0x09, 0x02, 0x5a, 0x20, 0x03, 0x00, 0x00, } diff --git a/protocol/protobuf/communities.pb.go b/protocol/protobuf/communities.pb.go index 2bbc01644..3efb3f7f1 100644 --- a/protocol/protobuf/communities.pb.go +++ b/protocol/protobuf/communities.pb.go @@ -1,24 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: communities.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type CommunityMember_Roles int32 @@ -29,100 +29,57 @@ const ( CommunityMember_ROLE_TOKEN_MASTER CommunityMember_Roles = 5 ) -// Enum value maps for CommunityMember_Roles. -var ( - CommunityMember_Roles_name = map[int32]string{ - 0: "ROLE_NONE", - 1: "ROLE_OWNER", - 4: "ROLE_ADMIN", - 5: "ROLE_TOKEN_MASTER", - } - CommunityMember_Roles_value = map[string]int32{ - "ROLE_NONE": 0, - "ROLE_OWNER": 1, - "ROLE_ADMIN": 4, - "ROLE_TOKEN_MASTER": 5, - } -) +var CommunityMember_Roles_name = map[int32]string{ + 0: "ROLE_NONE", + 1: "ROLE_OWNER", + 4: "ROLE_ADMIN", + 5: "ROLE_TOKEN_MASTER", +} -func (x CommunityMember_Roles) Enum() *CommunityMember_Roles { - p := new(CommunityMember_Roles) - *p = x - return p +var CommunityMember_Roles_value = map[string]int32{ + "ROLE_NONE": 0, + "ROLE_OWNER": 1, + "ROLE_ADMIN": 4, + "ROLE_TOKEN_MASTER": 5, } func (x CommunityMember_Roles) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(CommunityMember_Roles_name, int32(x)) } -func (CommunityMember_Roles) Descriptor() protoreflect.EnumDescriptor { - return file_communities_proto_enumTypes[0].Descriptor() -} - -func (CommunityMember_Roles) Type() protoreflect.EnumType { - return &file_communities_proto_enumTypes[0] -} - -func (x CommunityMember_Roles) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use CommunityMember_Roles.Descriptor instead. func (CommunityMember_Roles) EnumDescriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{1, 0} + return fileDescriptor_f937943d74c1cd8b, []int{1, 0} } type CommunityPermissions_Access int32 const ( - CommunityPermissions_UNKNOWN_ACCESS CommunityPermissions_Access = 0 - CommunityPermissions_AUTO_ACCEPT CommunityPermissions_Access = 1 - // Deprecated: Marked as deprecated in communities.proto. - CommunityPermissions_INVITATION_ONLY CommunityPermissions_Access = 2 + CommunityPermissions_UNKNOWN_ACCESS CommunityPermissions_Access = 0 + CommunityPermissions_AUTO_ACCEPT CommunityPermissions_Access = 1 + CommunityPermissions_INVITATION_ONLY CommunityPermissions_Access = 2 // Deprecated: Do not use. CommunityPermissions_MANUAL_ACCEPT CommunityPermissions_Access = 3 ) -// Enum value maps for CommunityPermissions_Access. -var ( - CommunityPermissions_Access_name = map[int32]string{ - 0: "UNKNOWN_ACCESS", - 1: "AUTO_ACCEPT", - 2: "INVITATION_ONLY", - 3: "MANUAL_ACCEPT", - } - CommunityPermissions_Access_value = map[string]int32{ - "UNKNOWN_ACCESS": 0, - "AUTO_ACCEPT": 1, - "INVITATION_ONLY": 2, - "MANUAL_ACCEPT": 3, - } -) +var CommunityPermissions_Access_name = map[int32]string{ + 0: "UNKNOWN_ACCESS", + 1: "AUTO_ACCEPT", + 2: "INVITATION_ONLY", + 3: "MANUAL_ACCEPT", +} -func (x CommunityPermissions_Access) Enum() *CommunityPermissions_Access { - p := new(CommunityPermissions_Access) - *p = x - return p +var CommunityPermissions_Access_value = map[string]int32{ + "UNKNOWN_ACCESS": 0, + "AUTO_ACCEPT": 1, + "INVITATION_ONLY": 2, + "MANUAL_ACCEPT": 3, } func (x CommunityPermissions_Access) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(CommunityPermissions_Access_name, int32(x)) } -func (CommunityPermissions_Access) Descriptor() protoreflect.EnumDescriptor { - return file_communities_proto_enumTypes[1].Descriptor() -} - -func (CommunityPermissions_Access) Type() protoreflect.EnumType { - return &file_communities_proto_enumTypes[1] -} - -func (x CommunityPermissions_Access) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use CommunityPermissions_Access.Descriptor instead. func (CommunityPermissions_Access) EnumDescriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{3, 0} + return fileDescriptor_f937943d74c1cd8b, []int{3, 0} } type CommunityTokenPermission_Type int32 @@ -137,551 +94,484 @@ const ( CommunityTokenPermission_BECOME_TOKEN_OWNER CommunityTokenPermission_Type = 6 ) -// Enum value maps for CommunityTokenPermission_Type. -var ( - CommunityTokenPermission_Type_name = map[int32]string{ - 0: "UNKNOWN_TOKEN_PERMISSION", - 1: "BECOME_ADMIN", - 2: "BECOME_MEMBER", - 3: "CAN_VIEW_CHANNEL", - 4: "CAN_VIEW_AND_POST_CHANNEL", - 5: "BECOME_TOKEN_MASTER", - 6: "BECOME_TOKEN_OWNER", - } - CommunityTokenPermission_Type_value = map[string]int32{ - "UNKNOWN_TOKEN_PERMISSION": 0, - "BECOME_ADMIN": 1, - "BECOME_MEMBER": 2, - "CAN_VIEW_CHANNEL": 3, - "CAN_VIEW_AND_POST_CHANNEL": 4, - "BECOME_TOKEN_MASTER": 5, - "BECOME_TOKEN_OWNER": 6, - } -) +var CommunityTokenPermission_Type_name = map[int32]string{ + 0: "UNKNOWN_TOKEN_PERMISSION", + 1: "BECOME_ADMIN", + 2: "BECOME_MEMBER", + 3: "CAN_VIEW_CHANNEL", + 4: "CAN_VIEW_AND_POST_CHANNEL", + 5: "BECOME_TOKEN_MASTER", + 6: "BECOME_TOKEN_OWNER", +} -func (x CommunityTokenPermission_Type) Enum() *CommunityTokenPermission_Type { - p := new(CommunityTokenPermission_Type) - *p = x - return p +var CommunityTokenPermission_Type_value = map[string]int32{ + "UNKNOWN_TOKEN_PERMISSION": 0, + "BECOME_ADMIN": 1, + "BECOME_MEMBER": 2, + "CAN_VIEW_CHANNEL": 3, + "CAN_VIEW_AND_POST_CHANNEL": 4, + "BECOME_TOKEN_MASTER": 5, + "BECOME_TOKEN_OWNER": 6, } func (x CommunityTokenPermission_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(CommunityTokenPermission_Type_name, int32(x)) } -func (CommunityTokenPermission_Type) Descriptor() protoreflect.EnumDescriptor { - return file_communities_proto_enumTypes[2].Descriptor() -} - -func (CommunityTokenPermission_Type) Type() protoreflect.EnumType { - return &file_communities_proto_enumTypes[2] -} - -func (x CommunityTokenPermission_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use CommunityTokenPermission_Type.Descriptor instead. func (CommunityTokenPermission_Type) EnumDescriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{5, 0} + return fileDescriptor_f937943d74c1cd8b, []int{5, 0} } type Grant struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CommunityId []byte `protobuf:"bytes,1,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` - MemberId []byte `protobuf:"bytes,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` - ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` - Clock uint64 `protobuf:"varint,4,opt,name=clock,proto3" json:"clock,omitempty"` + CommunityId []byte `protobuf:"bytes,1,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + MemberId []byte `protobuf:"bytes,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` + ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + Clock uint64 `protobuf:"varint,4,opt,name=clock,proto3" json:"clock,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Grant) Reset() { - *x = Grant{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Grant) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Grant) ProtoMessage() {} - -func (x *Grant) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Grant.ProtoReflect.Descriptor instead. +func (m *Grant) Reset() { *m = Grant{} } +func (m *Grant) String() string { return proto.CompactTextString(m) } +func (*Grant) ProtoMessage() {} func (*Grant) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{0} + return fileDescriptor_f937943d74c1cd8b, []int{0} } -func (x *Grant) GetCommunityId() []byte { - if x != nil { - return x.CommunityId +func (m *Grant) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Grant.Unmarshal(m, b) +} +func (m *Grant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Grant.Marshal(b, m, deterministic) +} +func (m *Grant) XXX_Merge(src proto.Message) { + xxx_messageInfo_Grant.Merge(m, src) +} +func (m *Grant) XXX_Size() int { + return xxx_messageInfo_Grant.Size(m) +} +func (m *Grant) XXX_DiscardUnknown() { + xxx_messageInfo_Grant.DiscardUnknown(m) +} + +var xxx_messageInfo_Grant proto.InternalMessageInfo + +func (m *Grant) GetCommunityId() []byte { + if m != nil { + return m.CommunityId } return nil } -func (x *Grant) GetMemberId() []byte { - if x != nil { - return x.MemberId +func (m *Grant) GetMemberId() []byte { + if m != nil { + return m.MemberId } return nil } -func (x *Grant) GetChatId() string { - if x != nil { - return x.ChatId +func (m *Grant) GetChatId() string { + if m != nil { + return m.ChatId } return "" } -func (x *Grant) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *Grant) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } type CommunityMember struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Roles []CommunityMember_Roles `protobuf:"varint,1,rep,packed,name=roles,proto3,enum=protobuf.CommunityMember_Roles" json:"roles,omitempty"` - // Deprecated: Marked as deprecated in communities.proto. - RevealedAccounts []*RevealedAccount `protobuf:"bytes,2,rep,name=revealed_accounts,json=revealedAccounts,proto3" json:"revealed_accounts,omitempty"` - LastUpdateClock uint64 `protobuf:"varint,3,opt,name=last_update_clock,json=lastUpdateClock,proto3" json:"last_update_clock,omitempty"` + Roles []CommunityMember_Roles `protobuf:"varint,1,rep,packed,name=roles,proto3,enum=protobuf.CommunityMember_Roles" json:"roles,omitempty"` + RevealedAccounts []*RevealedAccount `protobuf:"bytes,2,rep,name=revealed_accounts,json=revealedAccounts,proto3" json:"revealed_accounts,omitempty"` // Deprecated: Do not use. + LastUpdateClock uint64 `protobuf:"varint,3,opt,name=last_update_clock,json=lastUpdateClock,proto3" json:"last_update_clock,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityMember) Reset() { - *x = CommunityMember{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityMember) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityMember) ProtoMessage() {} - -func (x *CommunityMember) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityMember.ProtoReflect.Descriptor instead. +func (m *CommunityMember) Reset() { *m = CommunityMember{} } +func (m *CommunityMember) String() string { return proto.CompactTextString(m) } +func (*CommunityMember) ProtoMessage() {} func (*CommunityMember) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{1} + return fileDescriptor_f937943d74c1cd8b, []int{1} } -func (x *CommunityMember) GetRoles() []CommunityMember_Roles { - if x != nil { - return x.Roles +func (m *CommunityMember) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityMember.Unmarshal(m, b) +} +func (m *CommunityMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityMember.Marshal(b, m, deterministic) +} +func (m *CommunityMember) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityMember.Merge(m, src) +} +func (m *CommunityMember) XXX_Size() int { + return xxx_messageInfo_CommunityMember.Size(m) +} +func (m *CommunityMember) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityMember.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityMember proto.InternalMessageInfo + +func (m *CommunityMember) GetRoles() []CommunityMember_Roles { + if m != nil { + return m.Roles } return nil } -// Deprecated: Marked as deprecated in communities.proto. -func (x *CommunityMember) GetRevealedAccounts() []*RevealedAccount { - if x != nil { - return x.RevealedAccounts +// Deprecated: Do not use. +func (m *CommunityMember) GetRevealedAccounts() []*RevealedAccount { + if m != nil { + return m.RevealedAccounts } return nil } -func (x *CommunityMember) GetLastUpdateClock() uint64 { - if x != nil { - return x.LastUpdateClock +func (m *CommunityMember) GetLastUpdateClock() uint64 { + if m != nil { + return m.LastUpdateClock } return 0 } type CommunityTokenMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContractAddresses map[uint64]string `protobuf:"bytes,1,rep,name=contract_addresses,json=contractAddresses,proto3" json:"contract_addresses,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` - TokenType CommunityTokenType `protobuf:"varint,4,opt,name=tokenType,proto3,enum=protobuf.CommunityTokenType" json:"tokenType,omitempty"` - Symbol string `protobuf:"bytes,5,opt,name=symbol,proto3" json:"symbol,omitempty"` - Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` - Decimals uint32 `protobuf:"varint,7,opt,name=decimals,proto3" json:"decimals,omitempty"` + ContractAddresses map[uint64]string `protobuf:"bytes,1,rep,name=contract_addresses,json=contractAddresses,proto3" json:"contract_addresses,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` + TokenType CommunityTokenType `protobuf:"varint,4,opt,name=tokenType,proto3,enum=protobuf.CommunityTokenType" json:"tokenType,omitempty"` + Symbol string `protobuf:"bytes,5,opt,name=symbol,proto3" json:"symbol,omitempty"` + Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` + Decimals uint32 `protobuf:"varint,7,opt,name=decimals,proto3" json:"decimals,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityTokenMetadata) Reset() { - *x = CommunityTokenMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityTokenMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityTokenMetadata) ProtoMessage() {} - -func (x *CommunityTokenMetadata) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityTokenMetadata.ProtoReflect.Descriptor instead. +func (m *CommunityTokenMetadata) Reset() { *m = CommunityTokenMetadata{} } +func (m *CommunityTokenMetadata) String() string { return proto.CompactTextString(m) } +func (*CommunityTokenMetadata) ProtoMessage() {} func (*CommunityTokenMetadata) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{2} + return fileDescriptor_f937943d74c1cd8b, []int{2} } -func (x *CommunityTokenMetadata) GetContractAddresses() map[uint64]string { - if x != nil { - return x.ContractAddresses +func (m *CommunityTokenMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityTokenMetadata.Unmarshal(m, b) +} +func (m *CommunityTokenMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityTokenMetadata.Marshal(b, m, deterministic) +} +func (m *CommunityTokenMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityTokenMetadata.Merge(m, src) +} +func (m *CommunityTokenMetadata) XXX_Size() int { + return xxx_messageInfo_CommunityTokenMetadata.Size(m) +} +func (m *CommunityTokenMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityTokenMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityTokenMetadata proto.InternalMessageInfo + +func (m *CommunityTokenMetadata) GetContractAddresses() map[uint64]string { + if m != nil { + return m.ContractAddresses } return nil } -func (x *CommunityTokenMetadata) GetDescription() string { - if x != nil { - return x.Description +func (m *CommunityTokenMetadata) GetDescription() string { + if m != nil { + return m.Description } return "" } -func (x *CommunityTokenMetadata) GetImage() string { - if x != nil { - return x.Image +func (m *CommunityTokenMetadata) GetImage() string { + if m != nil { + return m.Image } return "" } -func (x *CommunityTokenMetadata) GetTokenType() CommunityTokenType { - if x != nil { - return x.TokenType +func (m *CommunityTokenMetadata) GetTokenType() CommunityTokenType { + if m != nil { + return m.TokenType } return CommunityTokenType_UNKNOWN_TOKEN_TYPE } -func (x *CommunityTokenMetadata) GetSymbol() string { - if x != nil { - return x.Symbol +func (m *CommunityTokenMetadata) GetSymbol() string { + if m != nil { + return m.Symbol } return "" } -func (x *CommunityTokenMetadata) GetName() string { - if x != nil { - return x.Name +func (m *CommunityTokenMetadata) GetName() string { + if m != nil { + return m.Name } return "" } -func (x *CommunityTokenMetadata) GetDecimals() uint32 { - if x != nil { - return x.Decimals +func (m *CommunityTokenMetadata) GetDecimals() uint32 { + if m != nil { + return m.Decimals } return 0 } type CommunityPermissions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - EnsOnly bool `protobuf:"varint,1,opt,name=ens_only,json=ensOnly,proto3" json:"ens_only,omitempty"` // https://gitlab.matrix.org/matrix-org/olm/blob/master/docs/megolm.md is a candidate for the algorithm to be used in case we want to have private communityal chats, lighter than pairwise encryption using the DR, less secure, but more efficient for large number of participants - Private bool `protobuf:"varint,2,opt,name=private,proto3" json:"private,omitempty"` - Access CommunityPermissions_Access `protobuf:"varint,3,opt,name=access,proto3,enum=protobuf.CommunityPermissions_Access" json:"access,omitempty"` + Private bool `protobuf:"varint,2,opt,name=private,proto3" json:"private,omitempty"` + Access CommunityPermissions_Access `protobuf:"varint,3,opt,name=access,proto3,enum=protobuf.CommunityPermissions_Access" json:"access,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityPermissions) Reset() { - *x = CommunityPermissions{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityPermissions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityPermissions) ProtoMessage() {} - -func (x *CommunityPermissions) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityPermissions.ProtoReflect.Descriptor instead. +func (m *CommunityPermissions) Reset() { *m = CommunityPermissions{} } +func (m *CommunityPermissions) String() string { return proto.CompactTextString(m) } +func (*CommunityPermissions) ProtoMessage() {} func (*CommunityPermissions) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{3} + return fileDescriptor_f937943d74c1cd8b, []int{3} } -func (x *CommunityPermissions) GetEnsOnly() bool { - if x != nil { - return x.EnsOnly +func (m *CommunityPermissions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityPermissions.Unmarshal(m, b) +} +func (m *CommunityPermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityPermissions.Marshal(b, m, deterministic) +} +func (m *CommunityPermissions) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityPermissions.Merge(m, src) +} +func (m *CommunityPermissions) XXX_Size() int { + return xxx_messageInfo_CommunityPermissions.Size(m) +} +func (m *CommunityPermissions) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityPermissions.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityPermissions proto.InternalMessageInfo + +func (m *CommunityPermissions) GetEnsOnly() bool { + if m != nil { + return m.EnsOnly } return false } -func (x *CommunityPermissions) GetPrivate() bool { - if x != nil { - return x.Private +func (m *CommunityPermissions) GetPrivate() bool { + if m != nil { + return m.Private } return false } -func (x *CommunityPermissions) GetAccess() CommunityPermissions_Access { - if x != nil { - return x.Access +func (m *CommunityPermissions) GetAccess() CommunityPermissions_Access { + if m != nil { + return m.Access } return CommunityPermissions_UNKNOWN_ACCESS } type TokenCriteria struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContractAddresses map[uint64]string `protobuf:"bytes,1,rep,name=contract_addresses,json=contractAddresses,proto3" json:"contract_addresses,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Type CommunityTokenType `protobuf:"varint,2,opt,name=type,proto3,enum=protobuf.CommunityTokenType" json:"type,omitempty"` - Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - Amount string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"` - TokenIds []uint64 `protobuf:"varint,6,rep,packed,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` - EnsPattern string `protobuf:"bytes,7,opt,name=ens_pattern,json=ensPattern,proto3" json:"ens_pattern,omitempty"` - Decimals uint64 `protobuf:"varint,8,opt,name=decimals,proto3" json:"decimals,omitempty"` + ContractAddresses map[uint64]string `protobuf:"bytes,1,rep,name=contract_addresses,json=contractAddresses,proto3" json:"contract_addresses,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Type CommunityTokenType `protobuf:"varint,2,opt,name=type,proto3,enum=protobuf.CommunityTokenType" json:"type,omitempty"` + Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"` + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + Amount string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"` // Deprecated: Do not use. + TokenIds []uint64 `protobuf:"varint,6,rep,packed,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` + EnsPattern string `protobuf:"bytes,7,opt,name=ens_pattern,json=ensPattern,proto3" json:"ens_pattern,omitempty"` + Decimals uint64 `protobuf:"varint,8,opt,name=decimals,proto3" json:"decimals,omitempty"` + AmountInWei string `protobuf:"bytes,9,opt,name=amountInWei,proto3" json:"amountInWei,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *TokenCriteria) Reset() { - *x = TokenCriteria{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TokenCriteria) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TokenCriteria) ProtoMessage() {} - -func (x *TokenCriteria) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TokenCriteria.ProtoReflect.Descriptor instead. +func (m *TokenCriteria) Reset() { *m = TokenCriteria{} } +func (m *TokenCriteria) String() string { return proto.CompactTextString(m) } +func (*TokenCriteria) ProtoMessage() {} func (*TokenCriteria) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{4} + return fileDescriptor_f937943d74c1cd8b, []int{4} } -func (x *TokenCriteria) GetContractAddresses() map[uint64]string { - if x != nil { - return x.ContractAddresses +func (m *TokenCriteria) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TokenCriteria.Unmarshal(m, b) +} +func (m *TokenCriteria) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TokenCriteria.Marshal(b, m, deterministic) +} +func (m *TokenCriteria) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenCriteria.Merge(m, src) +} +func (m *TokenCriteria) XXX_Size() int { + return xxx_messageInfo_TokenCriteria.Size(m) +} +func (m *TokenCriteria) XXX_DiscardUnknown() { + xxx_messageInfo_TokenCriteria.DiscardUnknown(m) +} + +var xxx_messageInfo_TokenCriteria proto.InternalMessageInfo + +func (m *TokenCriteria) GetContractAddresses() map[uint64]string { + if m != nil { + return m.ContractAddresses } return nil } -func (x *TokenCriteria) GetType() CommunityTokenType { - if x != nil { - return x.Type +func (m *TokenCriteria) GetType() CommunityTokenType { + if m != nil { + return m.Type } return CommunityTokenType_UNKNOWN_TOKEN_TYPE } -func (x *TokenCriteria) GetSymbol() string { - if x != nil { - return x.Symbol +func (m *TokenCriteria) GetSymbol() string { + if m != nil { + return m.Symbol } return "" } -func (x *TokenCriteria) GetName() string { - if x != nil { - return x.Name +func (m *TokenCriteria) GetName() string { + if m != nil { + return m.Name } return "" } -func (x *TokenCriteria) GetAmount() string { - if x != nil { - return x.Amount +// Deprecated: Do not use. +func (m *TokenCriteria) GetAmount() string { + if m != nil { + return m.Amount } return "" } -func (x *TokenCriteria) GetTokenIds() []uint64 { - if x != nil { - return x.TokenIds +func (m *TokenCriteria) GetTokenIds() []uint64 { + if m != nil { + return m.TokenIds } return nil } -func (x *TokenCriteria) GetEnsPattern() string { - if x != nil { - return x.EnsPattern +func (m *TokenCriteria) GetEnsPattern() string { + if m != nil { + return m.EnsPattern } return "" } -func (x *TokenCriteria) GetDecimals() uint64 { - if x != nil { - return x.Decimals +func (m *TokenCriteria) GetDecimals() uint64 { + if m != nil { + return m.Decimals } return 0 } -type CommunityTokenPermission struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Type CommunityTokenPermission_Type `protobuf:"varint,2,opt,name=type,proto3,enum=protobuf.CommunityTokenPermission_Type" json:"type,omitempty"` - TokenCriteria []*TokenCriteria `protobuf:"bytes,3,rep,name=token_criteria,json=tokenCriteria,proto3" json:"token_criteria,omitempty"` - ChatIds []string `protobuf:"bytes,4,rep,name=chat_ids,json=chatIds,proto3" json:"chat_ids,omitempty"` - IsPrivate bool `protobuf:"varint,5,opt,name=is_private,json=isPrivate,proto3" json:"is_private,omitempty"` -} - -func (x *CommunityTokenPermission) Reset() { - *x = CommunityTokenPermission{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityTokenPermission) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityTokenPermission) ProtoMessage() {} - -func (x *CommunityTokenPermission) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityTokenPermission.ProtoReflect.Descriptor instead. -func (*CommunityTokenPermission) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{5} -} - -func (x *CommunityTokenPermission) GetId() string { - if x != nil { - return x.Id +func (m *TokenCriteria) GetAmountInWei() string { + if m != nil { + return m.AmountInWei } return "" } -func (x *CommunityTokenPermission) GetType() CommunityTokenPermission_Type { - if x != nil { - return x.Type +type CommunityTokenPermission struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Type CommunityTokenPermission_Type `protobuf:"varint,2,opt,name=type,proto3,enum=protobuf.CommunityTokenPermission_Type" json:"type,omitempty"` + TokenCriteria []*TokenCriteria `protobuf:"bytes,3,rep,name=token_criteria,json=tokenCriteria,proto3" json:"token_criteria,omitempty"` + ChatIds []string `protobuf:"bytes,4,rep,name=chat_ids,json=chatIds,proto3" json:"chat_ids,omitempty"` + IsPrivate bool `protobuf:"varint,5,opt,name=is_private,json=isPrivate,proto3" json:"is_private,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommunityTokenPermission) Reset() { *m = CommunityTokenPermission{} } +func (m *CommunityTokenPermission) String() string { return proto.CompactTextString(m) } +func (*CommunityTokenPermission) ProtoMessage() {} +func (*CommunityTokenPermission) Descriptor() ([]byte, []int) { + return fileDescriptor_f937943d74c1cd8b, []int{5} +} + +func (m *CommunityTokenPermission) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityTokenPermission.Unmarshal(m, b) +} +func (m *CommunityTokenPermission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityTokenPermission.Marshal(b, m, deterministic) +} +func (m *CommunityTokenPermission) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityTokenPermission.Merge(m, src) +} +func (m *CommunityTokenPermission) XXX_Size() int { + return xxx_messageInfo_CommunityTokenPermission.Size(m) +} +func (m *CommunityTokenPermission) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityTokenPermission.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityTokenPermission proto.InternalMessageInfo + +func (m *CommunityTokenPermission) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *CommunityTokenPermission) GetType() CommunityTokenPermission_Type { + if m != nil { + return m.Type } return CommunityTokenPermission_UNKNOWN_TOKEN_PERMISSION } -func (x *CommunityTokenPermission) GetTokenCriteria() []*TokenCriteria { - if x != nil { - return x.TokenCriteria +func (m *CommunityTokenPermission) GetTokenCriteria() []*TokenCriteria { + if m != nil { + return m.TokenCriteria } return nil } -func (x *CommunityTokenPermission) GetChatIds() []string { - if x != nil { - return x.ChatIds +func (m *CommunityTokenPermission) GetChatIds() []string { + if m != nil { + return m.ChatIds } return nil } -func (x *CommunityTokenPermission) GetIsPrivate() bool { - if x != nil { - return x.IsPrivate +func (m *CommunityTokenPermission) GetIsPrivate() bool { + if m != nil { + return m.IsPrivate } return false } type CommunityDescription struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Members map[string]*CommunityMember `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Permissions *CommunityPermissions `protobuf:"bytes,3,opt,name=permissions,proto3" json:"permissions,omitempty"` - Identity *ChatIdentity `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"` - Chats map[string]*CommunityChat `protobuf:"bytes,6,rep,name=chats,proto3" json:"chats,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Deprecated: Marked as deprecated in communities.proto. - BanList []string `protobuf:"bytes,7,rep,name=ban_list,json=banList,proto3" json:"ban_list,omitempty"` - Categories map[string]*CommunityCategory `protobuf:"bytes,8,rep,name=categories,proto3" json:"categories,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - ArchiveMagnetlinkClock uint64 `protobuf:"varint,9,opt,name=archive_magnetlink_clock,json=archiveMagnetlinkClock,proto3" json:"archive_magnetlink_clock,omitempty"` - AdminSettings *CommunityAdminSettings `protobuf:"bytes,10,opt,name=admin_settings,json=adminSettings,proto3" json:"admin_settings,omitempty"` - IntroMessage string `protobuf:"bytes,11,opt,name=intro_message,json=introMessage,proto3" json:"intro_message,omitempty"` - OutroMessage string `protobuf:"bytes,12,opt,name=outro_message,json=outroMessage,proto3" json:"outro_message,omitempty"` - // Deprecated: Marked as deprecated in communities.proto. - Encrypted bool `protobuf:"varint,13,opt,name=encrypted,proto3" json:"encrypted,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Members map[string]*CommunityMember `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Permissions *CommunityPermissions `protobuf:"bytes,3,opt,name=permissions,proto3" json:"permissions,omitempty"` + Identity *ChatIdentity `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"` + Chats map[string]*CommunityChat `protobuf:"bytes,6,rep,name=chats,proto3" json:"chats,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + BanList []string `protobuf:"bytes,7,rep,name=ban_list,json=banList,proto3" json:"ban_list,omitempty"` // Deprecated: Do not use. + Categories map[string]*CommunityCategory `protobuf:"bytes,8,rep,name=categories,proto3" json:"categories,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ArchiveMagnetlinkClock uint64 `protobuf:"varint,9,opt,name=archive_magnetlink_clock,json=archiveMagnetlinkClock,proto3" json:"archive_magnetlink_clock,omitempty"` + AdminSettings *CommunityAdminSettings `protobuf:"bytes,10,opt,name=admin_settings,json=adminSettings,proto3" json:"admin_settings,omitempty"` + IntroMessage string `protobuf:"bytes,11,opt,name=intro_message,json=introMessage,proto3" json:"intro_message,omitempty"` + OutroMessage string `protobuf:"bytes,12,opt,name=outro_message,json=outroMessage,proto3" json:"outro_message,omitempty"` + Encrypted bool `protobuf:"varint,13,opt,name=encrypted,proto3" json:"encrypted,omitempty"` // Deprecated: Do not use. Tags []string `protobuf:"bytes,14,rep,name=tags,proto3" json:"tags,omitempty"` TokenPermissions map[string]*CommunityTokenPermission `protobuf:"bytes,15,rep,name=token_permissions,json=tokenPermissions,proto3" json:"token_permissions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` CommunityTokensMetadata []*CommunityTokenMetadata `protobuf:"bytes,16,rep,name=community_tokens_metadata,json=communityTokensMetadata,proto3" json:"community_tokens_metadata,omitempty"` @@ -689,772 +579,692 @@ type CommunityDescription struct { ID string `protobuf:"bytes,18,opt,name=ID,proto3" json:"ID,omitempty"` BannedMembers map[string]*CommunityBanInfo `protobuf:"bytes,19,rep,name=banned_members,json=bannedMembers,proto3" json:"banned_members,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // key is hash ratchet key_id + seq_no - PrivateData map[string][]byte `protobuf:"bytes,100,rep,name=privateData,proto3" json:"privateData,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + PrivateData map[string][]byte `protobuf:"bytes,100,rep,name=privateData,proto3" json:"privateData,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityDescription) Reset() { - *x = CommunityDescription{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityDescription) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityDescription) ProtoMessage() {} - -func (x *CommunityDescription) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityDescription.ProtoReflect.Descriptor instead. +func (m *CommunityDescription) Reset() { *m = CommunityDescription{} } +func (m *CommunityDescription) String() string { return proto.CompactTextString(m) } +func (*CommunityDescription) ProtoMessage() {} func (*CommunityDescription) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{6} + return fileDescriptor_f937943d74c1cd8b, []int{6} } -func (x *CommunityDescription) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *CommunityDescription) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityDescription.Unmarshal(m, b) +} +func (m *CommunityDescription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityDescription.Marshal(b, m, deterministic) +} +func (m *CommunityDescription) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityDescription.Merge(m, src) +} +func (m *CommunityDescription) XXX_Size() int { + return xxx_messageInfo_CommunityDescription.Size(m) +} +func (m *CommunityDescription) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityDescription.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityDescription proto.InternalMessageInfo + +func (m *CommunityDescription) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *CommunityDescription) GetMembers() map[string]*CommunityMember { - if x != nil { - return x.Members +func (m *CommunityDescription) GetMembers() map[string]*CommunityMember { + if m != nil { + return m.Members } return nil } -func (x *CommunityDescription) GetPermissions() *CommunityPermissions { - if x != nil { - return x.Permissions +func (m *CommunityDescription) GetPermissions() *CommunityPermissions { + if m != nil { + return m.Permissions } return nil } -func (x *CommunityDescription) GetIdentity() *ChatIdentity { - if x != nil { - return x.Identity +func (m *CommunityDescription) GetIdentity() *ChatIdentity { + if m != nil { + return m.Identity } return nil } -func (x *CommunityDescription) GetChats() map[string]*CommunityChat { - if x != nil { - return x.Chats +func (m *CommunityDescription) GetChats() map[string]*CommunityChat { + if m != nil { + return m.Chats } return nil } -// Deprecated: Marked as deprecated in communities.proto. -func (x *CommunityDescription) GetBanList() []string { - if x != nil { - return x.BanList +// Deprecated: Do not use. +func (m *CommunityDescription) GetBanList() []string { + if m != nil { + return m.BanList } return nil } -func (x *CommunityDescription) GetCategories() map[string]*CommunityCategory { - if x != nil { - return x.Categories +func (m *CommunityDescription) GetCategories() map[string]*CommunityCategory { + if m != nil { + return m.Categories } return nil } -func (x *CommunityDescription) GetArchiveMagnetlinkClock() uint64 { - if x != nil { - return x.ArchiveMagnetlinkClock +func (m *CommunityDescription) GetArchiveMagnetlinkClock() uint64 { + if m != nil { + return m.ArchiveMagnetlinkClock } return 0 } -func (x *CommunityDescription) GetAdminSettings() *CommunityAdminSettings { - if x != nil { - return x.AdminSettings +func (m *CommunityDescription) GetAdminSettings() *CommunityAdminSettings { + if m != nil { + return m.AdminSettings } return nil } -func (x *CommunityDescription) GetIntroMessage() string { - if x != nil { - return x.IntroMessage +func (m *CommunityDescription) GetIntroMessage() string { + if m != nil { + return m.IntroMessage } return "" } -func (x *CommunityDescription) GetOutroMessage() string { - if x != nil { - return x.OutroMessage +func (m *CommunityDescription) GetOutroMessage() string { + if m != nil { + return m.OutroMessage } return "" } -// Deprecated: Marked as deprecated in communities.proto. -func (x *CommunityDescription) GetEncrypted() bool { - if x != nil { - return x.Encrypted +// Deprecated: Do not use. +func (m *CommunityDescription) GetEncrypted() bool { + if m != nil { + return m.Encrypted } return false } -func (x *CommunityDescription) GetTags() []string { - if x != nil { - return x.Tags +func (m *CommunityDescription) GetTags() []string { + if m != nil { + return m.Tags } return nil } -func (x *CommunityDescription) GetTokenPermissions() map[string]*CommunityTokenPermission { - if x != nil { - return x.TokenPermissions +func (m *CommunityDescription) GetTokenPermissions() map[string]*CommunityTokenPermission { + if m != nil { + return m.TokenPermissions } return nil } -func (x *CommunityDescription) GetCommunityTokensMetadata() []*CommunityTokenMetadata { - if x != nil { - return x.CommunityTokensMetadata +func (m *CommunityDescription) GetCommunityTokensMetadata() []*CommunityTokenMetadata { + if m != nil { + return m.CommunityTokensMetadata } return nil } -func (x *CommunityDescription) GetActiveMembersCount() uint64 { - if x != nil { - return x.ActiveMembersCount +func (m *CommunityDescription) GetActiveMembersCount() uint64 { + if m != nil { + return m.ActiveMembersCount } return 0 } -func (x *CommunityDescription) GetID() string { - if x != nil { - return x.ID +func (m *CommunityDescription) GetID() string { + if m != nil { + return m.ID } return "" } -func (x *CommunityDescription) GetBannedMembers() map[string]*CommunityBanInfo { - if x != nil { - return x.BannedMembers +func (m *CommunityDescription) GetBannedMembers() map[string]*CommunityBanInfo { + if m != nil { + return m.BannedMembers } return nil } -func (x *CommunityDescription) GetPrivateData() map[string][]byte { - if x != nil { - return x.PrivateData +func (m *CommunityDescription) GetPrivateData() map[string][]byte { + if m != nil { + return m.PrivateData } return nil } type CommunityBanInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DeleteAllMessages bool `protobuf:"varint,1,opt,name=delete_all_messages,json=deleteAllMessages,proto3" json:"delete_all_messages,omitempty"` + DeleteAllMessages bool `protobuf:"varint,1,opt,name=delete_all_messages,json=deleteAllMessages,proto3" json:"delete_all_messages,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityBanInfo) Reset() { - *x = CommunityBanInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityBanInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityBanInfo) ProtoMessage() {} - -func (x *CommunityBanInfo) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityBanInfo.ProtoReflect.Descriptor instead. +func (m *CommunityBanInfo) Reset() { *m = CommunityBanInfo{} } +func (m *CommunityBanInfo) String() string { return proto.CompactTextString(m) } +func (*CommunityBanInfo) ProtoMessage() {} func (*CommunityBanInfo) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{7} + return fileDescriptor_f937943d74c1cd8b, []int{7} } -func (x *CommunityBanInfo) GetDeleteAllMessages() bool { - if x != nil { - return x.DeleteAllMessages +func (m *CommunityBanInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityBanInfo.Unmarshal(m, b) +} +func (m *CommunityBanInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityBanInfo.Marshal(b, m, deterministic) +} +func (m *CommunityBanInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityBanInfo.Merge(m, src) +} +func (m *CommunityBanInfo) XXX_Size() int { + return xxx_messageInfo_CommunityBanInfo.Size(m) +} +func (m *CommunityBanInfo) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityBanInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityBanInfo proto.InternalMessageInfo + +func (m *CommunityBanInfo) GetDeleteAllMessages() bool { + if m != nil { + return m.DeleteAllMessages } return false } type CommunityAdminSettings struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PinMessageAllMembersEnabled bool `protobuf:"varint,1,opt,name=pin_message_all_members_enabled,json=pinMessageAllMembersEnabled,proto3" json:"pin_message_all_members_enabled,omitempty"` + PinMessageAllMembersEnabled bool `protobuf:"varint,1,opt,name=pin_message_all_members_enabled,json=pinMessageAllMembersEnabled,proto3" json:"pin_message_all_members_enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityAdminSettings) Reset() { - *x = CommunityAdminSettings{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityAdminSettings) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityAdminSettings) ProtoMessage() {} - -func (x *CommunityAdminSettings) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityAdminSettings.ProtoReflect.Descriptor instead. +func (m *CommunityAdminSettings) Reset() { *m = CommunityAdminSettings{} } +func (m *CommunityAdminSettings) String() string { return proto.CompactTextString(m) } +func (*CommunityAdminSettings) ProtoMessage() {} func (*CommunityAdminSettings) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{8} + return fileDescriptor_f937943d74c1cd8b, []int{8} } -func (x *CommunityAdminSettings) GetPinMessageAllMembersEnabled() bool { - if x != nil { - return x.PinMessageAllMembersEnabled +func (m *CommunityAdminSettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityAdminSettings.Unmarshal(m, b) +} +func (m *CommunityAdminSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityAdminSettings.Marshal(b, m, deterministic) +} +func (m *CommunityAdminSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityAdminSettings.Merge(m, src) +} +func (m *CommunityAdminSettings) XXX_Size() int { + return xxx_messageInfo_CommunityAdminSettings.Size(m) +} +func (m *CommunityAdminSettings) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityAdminSettings.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityAdminSettings proto.InternalMessageInfo + +func (m *CommunityAdminSettings) GetPinMessageAllMembersEnabled() bool { + if m != nil { + return m.PinMessageAllMembersEnabled } return false } type CommunityChat struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Members map[string]*CommunityMember `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Permissions *CommunityPermissions `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"` - Identity *ChatIdentity `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` - CategoryId string `protobuf:"bytes,4,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` - Position int32 `protobuf:"varint,5,opt,name=position,proto3" json:"position,omitempty"` + Members map[string]*CommunityMember `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Permissions *CommunityPermissions `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"` + Identity *ChatIdentity `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` + CategoryId string `protobuf:"bytes,4,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` + Position int32 `protobuf:"varint,5,opt,name=position,proto3" json:"position,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityChat) Reset() { - *x = CommunityChat{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityChat) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityChat) ProtoMessage() {} - -func (x *CommunityChat) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityChat.ProtoReflect.Descriptor instead. +func (m *CommunityChat) Reset() { *m = CommunityChat{} } +func (m *CommunityChat) String() string { return proto.CompactTextString(m) } +func (*CommunityChat) ProtoMessage() {} func (*CommunityChat) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{9} + return fileDescriptor_f937943d74c1cd8b, []int{9} } -func (x *CommunityChat) GetMembers() map[string]*CommunityMember { - if x != nil { - return x.Members +func (m *CommunityChat) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityChat.Unmarshal(m, b) +} +func (m *CommunityChat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityChat.Marshal(b, m, deterministic) +} +func (m *CommunityChat) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityChat.Merge(m, src) +} +func (m *CommunityChat) XXX_Size() int { + return xxx_messageInfo_CommunityChat.Size(m) +} +func (m *CommunityChat) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityChat.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityChat proto.InternalMessageInfo + +func (m *CommunityChat) GetMembers() map[string]*CommunityMember { + if m != nil { + return m.Members } return nil } -func (x *CommunityChat) GetPermissions() *CommunityPermissions { - if x != nil { - return x.Permissions +func (m *CommunityChat) GetPermissions() *CommunityPermissions { + if m != nil { + return m.Permissions } return nil } -func (x *CommunityChat) GetIdentity() *ChatIdentity { - if x != nil { - return x.Identity +func (m *CommunityChat) GetIdentity() *ChatIdentity { + if m != nil { + return m.Identity } return nil } -func (x *CommunityChat) GetCategoryId() string { - if x != nil { - return x.CategoryId +func (m *CommunityChat) GetCategoryId() string { + if m != nil { + return m.CategoryId } return "" } -func (x *CommunityChat) GetPosition() int32 { - if x != nil { - return x.Position +func (m *CommunityChat) GetPosition() int32 { + if m != nil { + return m.Position } return 0 } type CommunityCategory struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CategoryId string `protobuf:"bytes,1,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Position int32 `protobuf:"varint,3,opt,name=position,proto3" json:"position,omitempty"` + CategoryId string `protobuf:"bytes,1,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Position int32 `protobuf:"varint,3,opt,name=position,proto3" json:"position,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityCategory) Reset() { - *x = CommunityCategory{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityCategory) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityCategory) ProtoMessage() {} - -func (x *CommunityCategory) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityCategory.ProtoReflect.Descriptor instead. +func (m *CommunityCategory) Reset() { *m = CommunityCategory{} } +func (m *CommunityCategory) String() string { return proto.CompactTextString(m) } +func (*CommunityCategory) ProtoMessage() {} func (*CommunityCategory) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{10} + return fileDescriptor_f937943d74c1cd8b, []int{10} } -func (x *CommunityCategory) GetCategoryId() string { - if x != nil { - return x.CategoryId +func (m *CommunityCategory) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityCategory.Unmarshal(m, b) +} +func (m *CommunityCategory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityCategory.Marshal(b, m, deterministic) +} +func (m *CommunityCategory) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityCategory.Merge(m, src) +} +func (m *CommunityCategory) XXX_Size() int { + return xxx_messageInfo_CommunityCategory.Size(m) +} +func (m *CommunityCategory) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityCategory.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityCategory proto.InternalMessageInfo + +func (m *CommunityCategory) GetCategoryId() string { + if m != nil { + return m.CategoryId } return "" } -func (x *CommunityCategory) GetName() string { - if x != nil { - return x.Name +func (m *CommunityCategory) GetName() string { + if m != nil { + return m.Name } return "" } -func (x *CommunityCategory) GetPosition() int32 { - if x != nil { - return x.Position +func (m *CommunityCategory) GetPosition() int32 { + if m != nil { + return m.Position } return 0 } type RevealedAccount struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - ChainIds []uint64 `protobuf:"varint,3,rep,packed,name=chain_ids,json=chainIds,proto3" json:"chain_ids,omitempty"` - IsAirdropAddress bool `protobuf:"varint,4,opt,name=isAirdropAddress,proto3" json:"isAirdropAddress,omitempty"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + ChainIds []uint64 `protobuf:"varint,3,rep,packed,name=chain_ids,json=chainIds,proto3" json:"chain_ids,omitempty"` + IsAirdropAddress bool `protobuf:"varint,4,opt,name=isAirdropAddress,proto3" json:"isAirdropAddress,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *RevealedAccount) Reset() { - *x = RevealedAccount{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RevealedAccount) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RevealedAccount) ProtoMessage() {} - -func (x *RevealedAccount) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RevealedAccount.ProtoReflect.Descriptor instead. +func (m *RevealedAccount) Reset() { *m = RevealedAccount{} } +func (m *RevealedAccount) String() string { return proto.CompactTextString(m) } +func (*RevealedAccount) ProtoMessage() {} func (*RevealedAccount) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{11} + return fileDescriptor_f937943d74c1cd8b, []int{11} } -func (x *RevealedAccount) GetAddress() string { - if x != nil { - return x.Address +func (m *RevealedAccount) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RevealedAccount.Unmarshal(m, b) +} +func (m *RevealedAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RevealedAccount.Marshal(b, m, deterministic) +} +func (m *RevealedAccount) XXX_Merge(src proto.Message) { + xxx_messageInfo_RevealedAccount.Merge(m, src) +} +func (m *RevealedAccount) XXX_Size() int { + return xxx_messageInfo_RevealedAccount.Size(m) +} +func (m *RevealedAccount) XXX_DiscardUnknown() { + xxx_messageInfo_RevealedAccount.DiscardUnknown(m) +} + +var xxx_messageInfo_RevealedAccount proto.InternalMessageInfo + +func (m *RevealedAccount) GetAddress() string { + if m != nil { + return m.Address } return "" } -func (x *RevealedAccount) GetSignature() []byte { - if x != nil { - return x.Signature +func (m *RevealedAccount) GetSignature() []byte { + if m != nil { + return m.Signature } return nil } -func (x *RevealedAccount) GetChainIds() []uint64 { - if x != nil { - return x.ChainIds +func (m *RevealedAccount) GetChainIds() []uint64 { + if m != nil { + return m.ChainIds } return nil } -func (x *RevealedAccount) GetIsAirdropAddress() bool { - if x != nil { - return x.IsAirdropAddress +func (m *RevealedAccount) GetIsAirdropAddress() bool { + if m != nil { + return m.IsAirdropAddress } return false } type CommunityRequestToJoin struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - EnsName string `protobuf:"bytes,2,opt,name=ens_name,json=ensName,proto3" json:"ens_name,omitempty"` - ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` - CommunityId []byte `protobuf:"bytes,4,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` - DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - RevealedAccounts []*RevealedAccount `protobuf:"bytes,6,rep,name=revealed_accounts,json=revealedAccounts,proto3" json:"revealed_accounts,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + EnsName string `protobuf:"bytes,2,opt,name=ens_name,json=ensName,proto3" json:"ens_name,omitempty"` + ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + CommunityId []byte `protobuf:"bytes,4,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + RevealedAccounts []*RevealedAccount `protobuf:"bytes,6,rep,name=revealed_accounts,json=revealedAccounts,proto3" json:"revealed_accounts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityRequestToJoin) Reset() { - *x = CommunityRequestToJoin{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityRequestToJoin) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityRequestToJoin) ProtoMessage() {} - -func (x *CommunityRequestToJoin) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityRequestToJoin.ProtoReflect.Descriptor instead. +func (m *CommunityRequestToJoin) Reset() { *m = CommunityRequestToJoin{} } +func (m *CommunityRequestToJoin) String() string { return proto.CompactTextString(m) } +func (*CommunityRequestToJoin) ProtoMessage() {} func (*CommunityRequestToJoin) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{12} + return fileDescriptor_f937943d74c1cd8b, []int{12} } -func (x *CommunityRequestToJoin) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *CommunityRequestToJoin) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityRequestToJoin.Unmarshal(m, b) +} +func (m *CommunityRequestToJoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityRequestToJoin.Marshal(b, m, deterministic) +} +func (m *CommunityRequestToJoin) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityRequestToJoin.Merge(m, src) +} +func (m *CommunityRequestToJoin) XXX_Size() int { + return xxx_messageInfo_CommunityRequestToJoin.Size(m) +} +func (m *CommunityRequestToJoin) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityRequestToJoin.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityRequestToJoin proto.InternalMessageInfo + +func (m *CommunityRequestToJoin) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *CommunityRequestToJoin) GetEnsName() string { - if x != nil { - return x.EnsName +func (m *CommunityRequestToJoin) GetEnsName() string { + if m != nil { + return m.EnsName } return "" } -func (x *CommunityRequestToJoin) GetChatId() string { - if x != nil { - return x.ChatId +func (m *CommunityRequestToJoin) GetChatId() string { + if m != nil { + return m.ChatId } return "" } -func (x *CommunityRequestToJoin) GetCommunityId() []byte { - if x != nil { - return x.CommunityId +func (m *CommunityRequestToJoin) GetCommunityId() []byte { + if m != nil { + return m.CommunityId } return nil } -func (x *CommunityRequestToJoin) GetDisplayName() string { - if x != nil { - return x.DisplayName +func (m *CommunityRequestToJoin) GetDisplayName() string { + if m != nil { + return m.DisplayName } return "" } -func (x *CommunityRequestToJoin) GetRevealedAccounts() []*RevealedAccount { - if x != nil { - return x.RevealedAccounts +func (m *CommunityRequestToJoin) GetRevealedAccounts() []*RevealedAccount { + if m != nil { + return m.RevealedAccounts } return nil } type CommunityEditSharedAddresses struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - CommunityId []byte `protobuf:"bytes,2,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` - RevealedAccounts []*RevealedAccount `protobuf:"bytes,3,rep,name=revealed_accounts,json=revealedAccounts,proto3" json:"revealed_accounts,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + CommunityId []byte `protobuf:"bytes,2,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + RevealedAccounts []*RevealedAccount `protobuf:"bytes,3,rep,name=revealed_accounts,json=revealedAccounts,proto3" json:"revealed_accounts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityEditSharedAddresses) Reset() { - *x = CommunityEditSharedAddresses{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityEditSharedAddresses) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityEditSharedAddresses) ProtoMessage() {} - -func (x *CommunityEditSharedAddresses) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityEditSharedAddresses.ProtoReflect.Descriptor instead. +func (m *CommunityEditSharedAddresses) Reset() { *m = CommunityEditSharedAddresses{} } +func (m *CommunityEditSharedAddresses) String() string { return proto.CompactTextString(m) } +func (*CommunityEditSharedAddresses) ProtoMessage() {} func (*CommunityEditSharedAddresses) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{13} + return fileDescriptor_f937943d74c1cd8b, []int{13} } -func (x *CommunityEditSharedAddresses) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *CommunityEditSharedAddresses) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityEditSharedAddresses.Unmarshal(m, b) +} +func (m *CommunityEditSharedAddresses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityEditSharedAddresses.Marshal(b, m, deterministic) +} +func (m *CommunityEditSharedAddresses) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityEditSharedAddresses.Merge(m, src) +} +func (m *CommunityEditSharedAddresses) XXX_Size() int { + return xxx_messageInfo_CommunityEditSharedAddresses.Size(m) +} +func (m *CommunityEditSharedAddresses) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityEditSharedAddresses.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityEditSharedAddresses proto.InternalMessageInfo + +func (m *CommunityEditSharedAddresses) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *CommunityEditSharedAddresses) GetCommunityId() []byte { - if x != nil { - return x.CommunityId +func (m *CommunityEditSharedAddresses) GetCommunityId() []byte { + if m != nil { + return m.CommunityId } return nil } -func (x *CommunityEditSharedAddresses) GetRevealedAccounts() []*RevealedAccount { - if x != nil { - return x.RevealedAccounts +func (m *CommunityEditSharedAddresses) GetRevealedAccounts() []*RevealedAccount { + if m != nil { + return m.RevealedAccounts } return nil } type CommunityCancelRequestToJoin struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - EnsName string `protobuf:"bytes,2,opt,name=ens_name,json=ensName,proto3" json:"ens_name,omitempty"` - ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` - CommunityId []byte `protobuf:"bytes,4,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` - DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + EnsName string `protobuf:"bytes,2,opt,name=ens_name,json=ensName,proto3" json:"ens_name,omitempty"` + ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + CommunityId []byte `protobuf:"bytes,4,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityCancelRequestToJoin) Reset() { - *x = CommunityCancelRequestToJoin{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityCancelRequestToJoin) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityCancelRequestToJoin) ProtoMessage() {} - -func (x *CommunityCancelRequestToJoin) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityCancelRequestToJoin.ProtoReflect.Descriptor instead. +func (m *CommunityCancelRequestToJoin) Reset() { *m = CommunityCancelRequestToJoin{} } +func (m *CommunityCancelRequestToJoin) String() string { return proto.CompactTextString(m) } +func (*CommunityCancelRequestToJoin) ProtoMessage() {} func (*CommunityCancelRequestToJoin) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{14} + return fileDescriptor_f937943d74c1cd8b, []int{14} } -func (x *CommunityCancelRequestToJoin) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *CommunityCancelRequestToJoin) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityCancelRequestToJoin.Unmarshal(m, b) +} +func (m *CommunityCancelRequestToJoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityCancelRequestToJoin.Marshal(b, m, deterministic) +} +func (m *CommunityCancelRequestToJoin) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityCancelRequestToJoin.Merge(m, src) +} +func (m *CommunityCancelRequestToJoin) XXX_Size() int { + return xxx_messageInfo_CommunityCancelRequestToJoin.Size(m) +} +func (m *CommunityCancelRequestToJoin) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityCancelRequestToJoin.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityCancelRequestToJoin proto.InternalMessageInfo + +func (m *CommunityCancelRequestToJoin) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *CommunityCancelRequestToJoin) GetEnsName() string { - if x != nil { - return x.EnsName +func (m *CommunityCancelRequestToJoin) GetEnsName() string { + if m != nil { + return m.EnsName } return "" } -func (x *CommunityCancelRequestToJoin) GetChatId() string { - if x != nil { - return x.ChatId +func (m *CommunityCancelRequestToJoin) GetChatId() string { + if m != nil { + return m.ChatId } return "" } -func (x *CommunityCancelRequestToJoin) GetCommunityId() []byte { - if x != nil { - return x.CommunityId +func (m *CommunityCancelRequestToJoin) GetCommunityId() []byte { + if m != nil { + return m.CommunityId } return nil } -func (x *CommunityCancelRequestToJoin) GetDisplayName() string { - if x != nil { - return x.DisplayName +func (m *CommunityCancelRequestToJoin) GetDisplayName() string { + if m != nil { + return m.DisplayName } return "" } type CommunityUserKicked struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - CommunityId []byte `protobuf:"bytes,2,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + CommunityId []byte `protobuf:"bytes,2,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityUserKicked) Reset() { - *x = CommunityUserKicked{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityUserKicked) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityUserKicked) ProtoMessage() {} - -func (x *CommunityUserKicked) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityUserKicked.ProtoReflect.Descriptor instead. +func (m *CommunityUserKicked) Reset() { *m = CommunityUserKicked{} } +func (m *CommunityUserKicked) String() string { return proto.CompactTextString(m) } +func (*CommunityUserKicked) ProtoMessage() {} func (*CommunityUserKicked) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{15} + return fileDescriptor_f937943d74c1cd8b, []int{15} } -func (x *CommunityUserKicked) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *CommunityUserKicked) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityUserKicked.Unmarshal(m, b) +} +func (m *CommunityUserKicked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityUserKicked.Marshal(b, m, deterministic) +} +func (m *CommunityUserKicked) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityUserKicked.Merge(m, src) +} +func (m *CommunityUserKicked) XXX_Size() int { + return xxx_messageInfo_CommunityUserKicked.Size(m) +} +func (m *CommunityUserKicked) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityUserKicked.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityUserKicked proto.InternalMessageInfo + +func (m *CommunityUserKicked) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *CommunityUserKicked) GetCommunityId() []byte { - if x != nil { - return x.CommunityId +func (m *CommunityUserKicked) GetCommunityId() []byte { + if m != nil { + return m.CommunityId } return nil } type CommunityRequestToJoinResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` Community *CommunityDescription `protobuf:"bytes,2,opt,name=community,proto3" json:"community,omitempty"` Accepted bool `protobuf:"varint,3,opt,name=accepted,proto3" json:"accepted,omitempty"` @@ -1463,1685 +1273,907 @@ type CommunityRequestToJoinResponse struct { MagnetUri string `protobuf:"bytes,6,opt,name=magnet_uri,json=magnetUri,proto3" json:"magnet_uri,omitempty"` ProtectedTopicPrivateKey []byte `protobuf:"bytes,7,opt,name=protected_topic_private_key,json=protectedTopicPrivateKey,proto3" json:"protected_topic_private_key,omitempty"` Shard *Shard `protobuf:"bytes,8,opt,name=shard,proto3" json:"shard,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityRequestToJoinResponse) Reset() { - *x = CommunityRequestToJoinResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityRequestToJoinResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityRequestToJoinResponse) ProtoMessage() {} - -func (x *CommunityRequestToJoinResponse) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityRequestToJoinResponse.ProtoReflect.Descriptor instead. +func (m *CommunityRequestToJoinResponse) Reset() { *m = CommunityRequestToJoinResponse{} } +func (m *CommunityRequestToJoinResponse) String() string { return proto.CompactTextString(m) } +func (*CommunityRequestToJoinResponse) ProtoMessage() {} func (*CommunityRequestToJoinResponse) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{16} + return fileDescriptor_f937943d74c1cd8b, []int{16} } -func (x *CommunityRequestToJoinResponse) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *CommunityRequestToJoinResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityRequestToJoinResponse.Unmarshal(m, b) +} +func (m *CommunityRequestToJoinResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityRequestToJoinResponse.Marshal(b, m, deterministic) +} +func (m *CommunityRequestToJoinResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityRequestToJoinResponse.Merge(m, src) +} +func (m *CommunityRequestToJoinResponse) XXX_Size() int { + return xxx_messageInfo_CommunityRequestToJoinResponse.Size(m) +} +func (m *CommunityRequestToJoinResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityRequestToJoinResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityRequestToJoinResponse proto.InternalMessageInfo + +func (m *CommunityRequestToJoinResponse) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *CommunityRequestToJoinResponse) GetCommunity() *CommunityDescription { - if x != nil { - return x.Community +func (m *CommunityRequestToJoinResponse) GetCommunity() *CommunityDescription { + if m != nil { + return m.Community } return nil } -func (x *CommunityRequestToJoinResponse) GetAccepted() bool { - if x != nil { - return x.Accepted +func (m *CommunityRequestToJoinResponse) GetAccepted() bool { + if m != nil { + return m.Accepted } return false } -func (x *CommunityRequestToJoinResponse) GetGrant() []byte { - if x != nil { - return x.Grant +func (m *CommunityRequestToJoinResponse) GetGrant() []byte { + if m != nil { + return m.Grant } return nil } -func (x *CommunityRequestToJoinResponse) GetCommunityId() []byte { - if x != nil { - return x.CommunityId +func (m *CommunityRequestToJoinResponse) GetCommunityId() []byte { + if m != nil { + return m.CommunityId } return nil } -func (x *CommunityRequestToJoinResponse) GetMagnetUri() string { - if x != nil { - return x.MagnetUri +func (m *CommunityRequestToJoinResponse) GetMagnetUri() string { + if m != nil { + return m.MagnetUri } return "" } -func (x *CommunityRequestToJoinResponse) GetProtectedTopicPrivateKey() []byte { - if x != nil { - return x.ProtectedTopicPrivateKey +func (m *CommunityRequestToJoinResponse) GetProtectedTopicPrivateKey() []byte { + if m != nil { + return m.ProtectedTopicPrivateKey } return nil } -func (x *CommunityRequestToJoinResponse) GetShard() *Shard { - if x != nil { - return x.Shard +func (m *CommunityRequestToJoinResponse) GetShard() *Shard { + if m != nil { + return m.Shard } return nil } type CommunityRequestToLeave struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - CommunityId []byte `protobuf:"bytes,2,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + CommunityId []byte `protobuf:"bytes,2,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityRequestToLeave) Reset() { - *x = CommunityRequestToLeave{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityRequestToLeave) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityRequestToLeave) ProtoMessage() {} - -func (x *CommunityRequestToLeave) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityRequestToLeave.ProtoReflect.Descriptor instead. +func (m *CommunityRequestToLeave) Reset() { *m = CommunityRequestToLeave{} } +func (m *CommunityRequestToLeave) String() string { return proto.CompactTextString(m) } +func (*CommunityRequestToLeave) ProtoMessage() {} func (*CommunityRequestToLeave) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{17} + return fileDescriptor_f937943d74c1cd8b, []int{17} } -func (x *CommunityRequestToLeave) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *CommunityRequestToLeave) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityRequestToLeave.Unmarshal(m, b) +} +func (m *CommunityRequestToLeave) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityRequestToLeave.Marshal(b, m, deterministic) +} +func (m *CommunityRequestToLeave) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityRequestToLeave.Merge(m, src) +} +func (m *CommunityRequestToLeave) XXX_Size() int { + return xxx_messageInfo_CommunityRequestToLeave.Size(m) +} +func (m *CommunityRequestToLeave) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityRequestToLeave.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityRequestToLeave proto.InternalMessageInfo + +func (m *CommunityRequestToLeave) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *CommunityRequestToLeave) GetCommunityId() []byte { - if x != nil { - return x.CommunityId +func (m *CommunityRequestToLeave) GetCommunityId() []byte { + if m != nil { + return m.CommunityId } return nil } type CommunityMessageArchiveMagnetlink struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - MagnetUri string `protobuf:"bytes,2,opt,name=magnet_uri,json=magnetUri,proto3" json:"magnet_uri,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + MagnetUri string `protobuf:"bytes,2,opt,name=magnet_uri,json=magnetUri,proto3" json:"magnet_uri,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityMessageArchiveMagnetlink) Reset() { - *x = CommunityMessageArchiveMagnetlink{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityMessageArchiveMagnetlink) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityMessageArchiveMagnetlink) ProtoMessage() {} - -func (x *CommunityMessageArchiveMagnetlink) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityMessageArchiveMagnetlink.ProtoReflect.Descriptor instead. +func (m *CommunityMessageArchiveMagnetlink) Reset() { *m = CommunityMessageArchiveMagnetlink{} } +func (m *CommunityMessageArchiveMagnetlink) String() string { return proto.CompactTextString(m) } +func (*CommunityMessageArchiveMagnetlink) ProtoMessage() {} func (*CommunityMessageArchiveMagnetlink) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{18} + return fileDescriptor_f937943d74c1cd8b, []int{18} } -func (x *CommunityMessageArchiveMagnetlink) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *CommunityMessageArchiveMagnetlink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityMessageArchiveMagnetlink.Unmarshal(m, b) +} +func (m *CommunityMessageArchiveMagnetlink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityMessageArchiveMagnetlink.Marshal(b, m, deterministic) +} +func (m *CommunityMessageArchiveMagnetlink) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityMessageArchiveMagnetlink.Merge(m, src) +} +func (m *CommunityMessageArchiveMagnetlink) XXX_Size() int { + return xxx_messageInfo_CommunityMessageArchiveMagnetlink.Size(m) +} +func (m *CommunityMessageArchiveMagnetlink) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityMessageArchiveMagnetlink.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityMessageArchiveMagnetlink proto.InternalMessageInfo + +func (m *CommunityMessageArchiveMagnetlink) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *CommunityMessageArchiveMagnetlink) GetMagnetUri() string { - if x != nil { - return x.MagnetUri +func (m *CommunityMessageArchiveMagnetlink) GetMagnetUri() string { + if m != nil { + return m.MagnetUri } return "" } type WakuMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Sig []byte `protobuf:"bytes,1,opt,name=sig,proto3" json:"sig,omitempty"` - Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Topic []byte `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"` - Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` - Padding []byte `protobuf:"bytes,5,opt,name=padding,proto3" json:"padding,omitempty"` - Hash []byte `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"` - ThirdPartyId string `protobuf:"bytes,7,opt,name=thirdPartyId,proto3" json:"thirdPartyId,omitempty"` + Sig []byte `protobuf:"bytes,1,opt,name=sig,proto3" json:"sig,omitempty"` + Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Topic []byte `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"` + Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` + Padding []byte `protobuf:"bytes,5,opt,name=padding,proto3" json:"padding,omitempty"` + Hash []byte `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"` + ThirdPartyId string `protobuf:"bytes,7,opt,name=thirdPartyId,proto3" json:"thirdPartyId,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *WakuMessage) Reset() { - *x = WakuMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WakuMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WakuMessage) ProtoMessage() {} - -func (x *WakuMessage) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WakuMessage.ProtoReflect.Descriptor instead. +func (m *WakuMessage) Reset() { *m = WakuMessage{} } +func (m *WakuMessage) String() string { return proto.CompactTextString(m) } +func (*WakuMessage) ProtoMessage() {} func (*WakuMessage) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{19} + return fileDescriptor_f937943d74c1cd8b, []int{19} } -func (x *WakuMessage) GetSig() []byte { - if x != nil { - return x.Sig +func (m *WakuMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WakuMessage.Unmarshal(m, b) +} +func (m *WakuMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WakuMessage.Marshal(b, m, deterministic) +} +func (m *WakuMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_WakuMessage.Merge(m, src) +} +func (m *WakuMessage) XXX_Size() int { + return xxx_messageInfo_WakuMessage.Size(m) +} +func (m *WakuMessage) XXX_DiscardUnknown() { + xxx_messageInfo_WakuMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_WakuMessage proto.InternalMessageInfo + +func (m *WakuMessage) GetSig() []byte { + if m != nil { + return m.Sig } return nil } -func (x *WakuMessage) GetTimestamp() uint64 { - if x != nil { - return x.Timestamp +func (m *WakuMessage) GetTimestamp() uint64 { + if m != nil { + return m.Timestamp } return 0 } -func (x *WakuMessage) GetTopic() []byte { - if x != nil { - return x.Topic +func (m *WakuMessage) GetTopic() []byte { + if m != nil { + return m.Topic } return nil } -func (x *WakuMessage) GetPayload() []byte { - if x != nil { - return x.Payload +func (m *WakuMessage) GetPayload() []byte { + if m != nil { + return m.Payload } return nil } -func (x *WakuMessage) GetPadding() []byte { - if x != nil { - return x.Padding +func (m *WakuMessage) GetPadding() []byte { + if m != nil { + return m.Padding } return nil } -func (x *WakuMessage) GetHash() []byte { - if x != nil { - return x.Hash +func (m *WakuMessage) GetHash() []byte { + if m != nil { + return m.Hash } return nil } -func (x *WakuMessage) GetThirdPartyId() string { - if x != nil { - return x.ThirdPartyId +func (m *WakuMessage) GetThirdPartyId() string { + if m != nil { + return m.ThirdPartyId } return "" } type WakuMessageArchiveMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - From uint64 `protobuf:"varint,2,opt,name=from,proto3" json:"from,omitempty"` - To uint64 `protobuf:"varint,3,opt,name=to,proto3" json:"to,omitempty"` - ContentTopic [][]byte `protobuf:"bytes,4,rep,name=contentTopic,proto3" json:"contentTopic,omitempty"` + Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + From uint64 `protobuf:"varint,2,opt,name=from,proto3" json:"from,omitempty"` + To uint64 `protobuf:"varint,3,opt,name=to,proto3" json:"to,omitempty"` + ContentTopic [][]byte `protobuf:"bytes,4,rep,name=contentTopic,proto3" json:"contentTopic,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *WakuMessageArchiveMetadata) Reset() { - *x = WakuMessageArchiveMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WakuMessageArchiveMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WakuMessageArchiveMetadata) ProtoMessage() {} - -func (x *WakuMessageArchiveMetadata) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WakuMessageArchiveMetadata.ProtoReflect.Descriptor instead. +func (m *WakuMessageArchiveMetadata) Reset() { *m = WakuMessageArchiveMetadata{} } +func (m *WakuMessageArchiveMetadata) String() string { return proto.CompactTextString(m) } +func (*WakuMessageArchiveMetadata) ProtoMessage() {} func (*WakuMessageArchiveMetadata) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{20} + return fileDescriptor_f937943d74c1cd8b, []int{20} } -func (x *WakuMessageArchiveMetadata) GetVersion() uint32 { - if x != nil { - return x.Version +func (m *WakuMessageArchiveMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WakuMessageArchiveMetadata.Unmarshal(m, b) +} +func (m *WakuMessageArchiveMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WakuMessageArchiveMetadata.Marshal(b, m, deterministic) +} +func (m *WakuMessageArchiveMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_WakuMessageArchiveMetadata.Merge(m, src) +} +func (m *WakuMessageArchiveMetadata) XXX_Size() int { + return xxx_messageInfo_WakuMessageArchiveMetadata.Size(m) +} +func (m *WakuMessageArchiveMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_WakuMessageArchiveMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_WakuMessageArchiveMetadata proto.InternalMessageInfo + +func (m *WakuMessageArchiveMetadata) GetVersion() uint32 { + if m != nil { + return m.Version } return 0 } -func (x *WakuMessageArchiveMetadata) GetFrom() uint64 { - if x != nil { - return x.From +func (m *WakuMessageArchiveMetadata) GetFrom() uint64 { + if m != nil { + return m.From } return 0 } -func (x *WakuMessageArchiveMetadata) GetTo() uint64 { - if x != nil { - return x.To +func (m *WakuMessageArchiveMetadata) GetTo() uint64 { + if m != nil { + return m.To } return 0 } -func (x *WakuMessageArchiveMetadata) GetContentTopic() [][]byte { - if x != nil { - return x.ContentTopic +func (m *WakuMessageArchiveMetadata) GetContentTopic() [][]byte { + if m != nil { + return m.ContentTopic } return nil } type WakuMessageArchive struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - Metadata *WakuMessageArchiveMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` - Messages []*WakuMessage `protobuf:"bytes,3,rep,name=messages,proto3" json:"messages,omitempty"` + Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + Metadata *WakuMessageArchiveMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + Messages []*WakuMessage `protobuf:"bytes,3,rep,name=messages,proto3" json:"messages,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *WakuMessageArchive) Reset() { - *x = WakuMessageArchive{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WakuMessageArchive) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WakuMessageArchive) ProtoMessage() {} - -func (x *WakuMessageArchive) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WakuMessageArchive.ProtoReflect.Descriptor instead. +func (m *WakuMessageArchive) Reset() { *m = WakuMessageArchive{} } +func (m *WakuMessageArchive) String() string { return proto.CompactTextString(m) } +func (*WakuMessageArchive) ProtoMessage() {} func (*WakuMessageArchive) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{21} + return fileDescriptor_f937943d74c1cd8b, []int{21} } -func (x *WakuMessageArchive) GetVersion() uint32 { - if x != nil { - return x.Version +func (m *WakuMessageArchive) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WakuMessageArchive.Unmarshal(m, b) +} +func (m *WakuMessageArchive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WakuMessageArchive.Marshal(b, m, deterministic) +} +func (m *WakuMessageArchive) XXX_Merge(src proto.Message) { + xxx_messageInfo_WakuMessageArchive.Merge(m, src) +} +func (m *WakuMessageArchive) XXX_Size() int { + return xxx_messageInfo_WakuMessageArchive.Size(m) +} +func (m *WakuMessageArchive) XXX_DiscardUnknown() { + xxx_messageInfo_WakuMessageArchive.DiscardUnknown(m) +} + +var xxx_messageInfo_WakuMessageArchive proto.InternalMessageInfo + +func (m *WakuMessageArchive) GetVersion() uint32 { + if m != nil { + return m.Version } return 0 } -func (x *WakuMessageArchive) GetMetadata() *WakuMessageArchiveMetadata { - if x != nil { - return x.Metadata +func (m *WakuMessageArchive) GetMetadata() *WakuMessageArchiveMetadata { + if m != nil { + return m.Metadata } return nil } -func (x *WakuMessageArchive) GetMessages() []*WakuMessage { - if x != nil { - return x.Messages +func (m *WakuMessageArchive) GetMessages() []*WakuMessage { + if m != nil { + return m.Messages } return nil } type WakuMessageArchiveIndexMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - Metadata *WakuMessageArchiveMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` - Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` - Size uint64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` - Padding uint64 `protobuf:"varint,5,opt,name=padding,proto3" json:"padding,omitempty"` + Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + Metadata *WakuMessageArchiveMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` + Size uint64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` + Padding uint64 `protobuf:"varint,5,opt,name=padding,proto3" json:"padding,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *WakuMessageArchiveIndexMetadata) Reset() { - *x = WakuMessageArchiveIndexMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WakuMessageArchiveIndexMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WakuMessageArchiveIndexMetadata) ProtoMessage() {} - -func (x *WakuMessageArchiveIndexMetadata) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WakuMessageArchiveIndexMetadata.ProtoReflect.Descriptor instead. +func (m *WakuMessageArchiveIndexMetadata) Reset() { *m = WakuMessageArchiveIndexMetadata{} } +func (m *WakuMessageArchiveIndexMetadata) String() string { return proto.CompactTextString(m) } +func (*WakuMessageArchiveIndexMetadata) ProtoMessage() {} func (*WakuMessageArchiveIndexMetadata) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{22} + return fileDescriptor_f937943d74c1cd8b, []int{22} } -func (x *WakuMessageArchiveIndexMetadata) GetVersion() uint32 { - if x != nil { - return x.Version +func (m *WakuMessageArchiveIndexMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WakuMessageArchiveIndexMetadata.Unmarshal(m, b) +} +func (m *WakuMessageArchiveIndexMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WakuMessageArchiveIndexMetadata.Marshal(b, m, deterministic) +} +func (m *WakuMessageArchiveIndexMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_WakuMessageArchiveIndexMetadata.Merge(m, src) +} +func (m *WakuMessageArchiveIndexMetadata) XXX_Size() int { + return xxx_messageInfo_WakuMessageArchiveIndexMetadata.Size(m) +} +func (m *WakuMessageArchiveIndexMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_WakuMessageArchiveIndexMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_WakuMessageArchiveIndexMetadata proto.InternalMessageInfo + +func (m *WakuMessageArchiveIndexMetadata) GetVersion() uint32 { + if m != nil { + return m.Version } return 0 } -func (x *WakuMessageArchiveIndexMetadata) GetMetadata() *WakuMessageArchiveMetadata { - if x != nil { - return x.Metadata +func (m *WakuMessageArchiveIndexMetadata) GetMetadata() *WakuMessageArchiveMetadata { + if m != nil { + return m.Metadata } return nil } -func (x *WakuMessageArchiveIndexMetadata) GetOffset() uint64 { - if x != nil { - return x.Offset +func (m *WakuMessageArchiveIndexMetadata) GetOffset() uint64 { + if m != nil { + return m.Offset } return 0 } -func (x *WakuMessageArchiveIndexMetadata) GetSize() uint64 { - if x != nil { - return x.Size +func (m *WakuMessageArchiveIndexMetadata) GetSize() uint64 { + if m != nil { + return m.Size } return 0 } -func (x *WakuMessageArchiveIndexMetadata) GetPadding() uint64 { - if x != nil { - return x.Padding +func (m *WakuMessageArchiveIndexMetadata) GetPadding() uint64 { + if m != nil { + return m.Padding } return 0 } type WakuMessageArchiveIndex struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Archives map[string]*WakuMessageArchiveIndexMetadata `protobuf:"bytes,1,rep,name=archives,proto3" json:"archives,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Archives map[string]*WakuMessageArchiveIndexMetadata `protobuf:"bytes,1,rep,name=archives,proto3" json:"archives,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *WakuMessageArchiveIndex) Reset() { - *x = WakuMessageArchiveIndex{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WakuMessageArchiveIndex) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WakuMessageArchiveIndex) ProtoMessage() {} - -func (x *WakuMessageArchiveIndex) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WakuMessageArchiveIndex.ProtoReflect.Descriptor instead. +func (m *WakuMessageArchiveIndex) Reset() { *m = WakuMessageArchiveIndex{} } +func (m *WakuMessageArchiveIndex) String() string { return proto.CompactTextString(m) } +func (*WakuMessageArchiveIndex) ProtoMessage() {} func (*WakuMessageArchiveIndex) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{23} + return fileDescriptor_f937943d74c1cd8b, []int{23} } -func (x *WakuMessageArchiveIndex) GetArchives() map[string]*WakuMessageArchiveIndexMetadata { - if x != nil { - return x.Archives +func (m *WakuMessageArchiveIndex) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WakuMessageArchiveIndex.Unmarshal(m, b) +} +func (m *WakuMessageArchiveIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WakuMessageArchiveIndex.Marshal(b, m, deterministic) +} +func (m *WakuMessageArchiveIndex) XXX_Merge(src proto.Message) { + xxx_messageInfo_WakuMessageArchiveIndex.Merge(m, src) +} +func (m *WakuMessageArchiveIndex) XXX_Size() int { + return xxx_messageInfo_WakuMessageArchiveIndex.Size(m) +} +func (m *WakuMessageArchiveIndex) XXX_DiscardUnknown() { + xxx_messageInfo_WakuMessageArchiveIndex.DiscardUnknown(m) +} + +var xxx_messageInfo_WakuMessageArchiveIndex proto.InternalMessageInfo + +func (m *WakuMessageArchiveIndex) GetArchives() map[string]*WakuMessageArchiveIndexMetadata { + if m != nil { + return m.Archives } return nil } type CommunityPublicStorenodesInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Signature of the payload field Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` // Marshaled CommunityStorenodes - Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` + Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityPublicStorenodesInfo) Reset() { - *x = CommunityPublicStorenodesInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityPublicStorenodesInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityPublicStorenodesInfo) ProtoMessage() {} - -func (x *CommunityPublicStorenodesInfo) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityPublicStorenodesInfo.ProtoReflect.Descriptor instead. +func (m *CommunityPublicStorenodesInfo) Reset() { *m = CommunityPublicStorenodesInfo{} } +func (m *CommunityPublicStorenodesInfo) String() string { return proto.CompactTextString(m) } +func (*CommunityPublicStorenodesInfo) ProtoMessage() {} func (*CommunityPublicStorenodesInfo) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{24} + return fileDescriptor_f937943d74c1cd8b, []int{24} } -func (x *CommunityPublicStorenodesInfo) GetSignature() []byte { - if x != nil { - return x.Signature +func (m *CommunityPublicStorenodesInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityPublicStorenodesInfo.Unmarshal(m, b) +} +func (m *CommunityPublicStorenodesInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityPublicStorenodesInfo.Marshal(b, m, deterministic) +} +func (m *CommunityPublicStorenodesInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityPublicStorenodesInfo.Merge(m, src) +} +func (m *CommunityPublicStorenodesInfo) XXX_Size() int { + return xxx_messageInfo_CommunityPublicStorenodesInfo.Size(m) +} +func (m *CommunityPublicStorenodesInfo) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityPublicStorenodesInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityPublicStorenodesInfo proto.InternalMessageInfo + +func (m *CommunityPublicStorenodesInfo) GetSignature() []byte { + if m != nil { + return m.Signature } return nil } -func (x *CommunityPublicStorenodesInfo) GetPayload() []byte { - if x != nil { - return x.Payload +func (m *CommunityPublicStorenodesInfo) GetPayload() []byte { + if m != nil { + return m.Payload } return nil } type CommunityStorenodes struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - CommunityId []byte `protobuf:"bytes,2,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` - Storenodes []*Storenode `protobuf:"bytes,3,rep,name=storenodes,proto3" json:"storenodes,omitempty"` - ChainId uint64 `protobuf:"varint,4,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + CommunityId []byte `protobuf:"bytes,2,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + Storenodes []*Storenode `protobuf:"bytes,3,rep,name=storenodes,proto3" json:"storenodes,omitempty"` + ChainId uint64 `protobuf:"varint,4,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityStorenodes) Reset() { - *x = CommunityStorenodes{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityStorenodes) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityStorenodes) ProtoMessage() {} - -func (x *CommunityStorenodes) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityStorenodes.ProtoReflect.Descriptor instead. +func (m *CommunityStorenodes) Reset() { *m = CommunityStorenodes{} } +func (m *CommunityStorenodes) String() string { return proto.CompactTextString(m) } +func (*CommunityStorenodes) ProtoMessage() {} func (*CommunityStorenodes) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{25} + return fileDescriptor_f937943d74c1cd8b, []int{25} } -func (x *CommunityStorenodes) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *CommunityStorenodes) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityStorenodes.Unmarshal(m, b) +} +func (m *CommunityStorenodes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityStorenodes.Marshal(b, m, deterministic) +} +func (m *CommunityStorenodes) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityStorenodes.Merge(m, src) +} +func (m *CommunityStorenodes) XXX_Size() int { + return xxx_messageInfo_CommunityStorenodes.Size(m) +} +func (m *CommunityStorenodes) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityStorenodes.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityStorenodes proto.InternalMessageInfo + +func (m *CommunityStorenodes) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *CommunityStorenodes) GetCommunityId() []byte { - if x != nil { - return x.CommunityId +func (m *CommunityStorenodes) GetCommunityId() []byte { + if m != nil { + return m.CommunityId } return nil } -func (x *CommunityStorenodes) GetStorenodes() []*Storenode { - if x != nil { - return x.Storenodes +func (m *CommunityStorenodes) GetStorenodes() []*Storenode { + if m != nil { + return m.Storenodes } return nil } -func (x *CommunityStorenodes) GetChainId() uint64 { - if x != nil { - return x.ChainId +func (m *CommunityStorenodes) GetChainId() uint64 { + if m != nil { + return m.ChainId } return 0 } type Storenode struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CommunityId []byte `protobuf:"bytes,1,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` - StorenodeId string `protobuf:"bytes,2,opt,name=storenode_id,json=storenodeId,proto3" json:"storenode_id,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` - Fleet string `protobuf:"bytes,5,opt,name=fleet,proto3" json:"fleet,omitempty"` - Version uint32 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"` - Removed bool `protobuf:"varint,7,opt,name=removed,proto3" json:"removed,omitempty"` - DeletedAt int64 `protobuf:"varint,8,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` + CommunityId []byte `protobuf:"bytes,1,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + StorenodeId string `protobuf:"bytes,2,opt,name=storenode_id,json=storenodeId,proto3" json:"storenode_id,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` + Fleet string `protobuf:"bytes,5,opt,name=fleet,proto3" json:"fleet,omitempty"` + Version uint32 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"` + Removed bool `protobuf:"varint,7,opt,name=removed,proto3" json:"removed,omitempty"` + DeletedAt int64 `protobuf:"varint,8,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Storenode) Reset() { - *x = Storenode{} - if protoimpl.UnsafeEnabled { - mi := &file_communities_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Storenode) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Storenode) ProtoMessage() {} - -func (x *Storenode) ProtoReflect() protoreflect.Message { - mi := &file_communities_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Storenode.ProtoReflect.Descriptor instead. +func (m *Storenode) Reset() { *m = Storenode{} } +func (m *Storenode) String() string { return proto.CompactTextString(m) } +func (*Storenode) ProtoMessage() {} func (*Storenode) Descriptor() ([]byte, []int) { - return file_communities_proto_rawDescGZIP(), []int{26} + return fileDescriptor_f937943d74c1cd8b, []int{26} } -func (x *Storenode) GetCommunityId() []byte { - if x != nil { - return x.CommunityId +func (m *Storenode) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Storenode.Unmarshal(m, b) +} +func (m *Storenode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Storenode.Marshal(b, m, deterministic) +} +func (m *Storenode) XXX_Merge(src proto.Message) { + xxx_messageInfo_Storenode.Merge(m, src) +} +func (m *Storenode) XXX_Size() int { + return xxx_messageInfo_Storenode.Size(m) +} +func (m *Storenode) XXX_DiscardUnknown() { + xxx_messageInfo_Storenode.DiscardUnknown(m) +} + +var xxx_messageInfo_Storenode proto.InternalMessageInfo + +func (m *Storenode) GetCommunityId() []byte { + if m != nil { + return m.CommunityId } return nil } -func (x *Storenode) GetStorenodeId() string { - if x != nil { - return x.StorenodeId +func (m *Storenode) GetStorenodeId() string { + if m != nil { + return m.StorenodeId } return "" } -func (x *Storenode) GetName() string { - if x != nil { - return x.Name +func (m *Storenode) GetName() string { + if m != nil { + return m.Name } return "" } -func (x *Storenode) GetAddress() string { - if x != nil { - return x.Address +func (m *Storenode) GetAddress() string { + if m != nil { + return m.Address } return "" } -func (x *Storenode) GetFleet() string { - if x != nil { - return x.Fleet +func (m *Storenode) GetFleet() string { + if m != nil { + return m.Fleet } return "" } -func (x *Storenode) GetVersion() uint32 { - if x != nil { - return x.Version +func (m *Storenode) GetVersion() uint32 { + if m != nil { + return m.Version } return 0 } -func (x *Storenode) GetRemoved() bool { - if x != nil { - return x.Removed +func (m *Storenode) GetRemoved() bool { + if m != nil { + return m.Removed } return false } -func (x *Storenode) GetDeletedAt() int64 { - if x != nil { - return x.DeletedAt +func (m *Storenode) GetDeletedAt() int64 { + if m != nil { + return m.DeletedAt } return 0 } -var File_communities_proto protoreflect.FileDescriptor - -var file_communities_proto_rawDesc = []byte{ - 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x13, 0x63, - 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x0b, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x0b, 0x73, 0x68, 0x61, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x76, 0x0a, 0x05, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, - 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x6f, 0x6d, - 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12, 0x14, - 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, - 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0xc6, 0x02, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, - 0x74, 0x79, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x4d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, - 0x4a, 0x0a, 0x11, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x52, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x65, 0x64, 0x41, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x10, 0x72, 0x65, 0x76, 0x65, 0x61, - 0x6c, 0x65, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x6c, - 0x61, 0x73, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x6c, 0x6f, 0x63, 0x6b, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0x83, 0x01, 0x0a, 0x05, 0x52, 0x6f, 0x6c, 0x65, - 0x73, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, - 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, 0x01, - 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x04, - 0x12, 0x15, 0x0a, 0x11, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x4d, - 0x41, 0x53, 0x54, 0x45, 0x52, 0x10, 0x05, 0x22, 0x04, 0x08, 0x02, 0x10, 0x02, 0x22, 0x04, 0x08, - 0x03, 0x10, 0x03, 0x2a, 0x11, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x4d, 0x41, 0x4e, 0x41, 0x47, 0x45, - 0x5f, 0x55, 0x53, 0x45, 0x52, 0x53, 0x2a, 0x15, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x4d, 0x4f, 0x44, - 0x45, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x22, 0x82, 0x03, - 0x0a, 0x16, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x66, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x11, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, - 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x3a, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x1a, 0x44, 0x0a, 0x16, - 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x22, 0xe5, 0x01, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, - 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x65, - 0x6e, 0x73, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, - 0x6e, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x12, 0x3d, 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x25, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, - 0x75, 0x6e, 0x69, 0x74, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, - 0x59, 0x0a, 0x06, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x0e, 0x55, 0x4e, 0x4b, - 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x00, 0x12, 0x0f, 0x0a, - 0x0b, 0x41, 0x55, 0x54, 0x4f, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x10, 0x01, 0x12, 0x17, - 0x0a, 0x0f, 0x49, 0x4e, 0x56, 0x49, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x4e, 0x4c, - 0x59, 0x10, 0x02, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x41, 0x4e, 0x55, 0x41, - 0x4c, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x10, 0x03, 0x22, 0x84, 0x03, 0x0a, 0x0d, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x12, 0x5d, 0x0a, 0x12, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, - 0x61, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, - 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, - 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x06, - 0x20, 0x03, 0x28, 0x04, 0x52, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x73, 0x12, 0x1f, - 0x0a, 0x0b, 0x65, 0x6e, 0x73, 0x5f, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x6e, 0x73, 0x50, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x12, - 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x1a, 0x44, 0x0a, 0x16, 0x43, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, - 0x01, 0x22, 0x93, 0x03, 0x0a, 0x18, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3b, - 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, - 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x3e, 0x0a, 0x0e, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x63, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x52, 0x0d, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x63, - 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, - 0x68, 0x61, 0x74, 0x49, 0x64, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x70, 0x72, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x50, 0x72, - 0x69, 0x76, 0x61, 0x74, 0x65, 0x22, 0xaf, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, - 0x0a, 0x18, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, - 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, - 0x42, 0x45, 0x43, 0x4f, 0x4d, 0x45, 0x5f, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x11, - 0x0a, 0x0d, 0x42, 0x45, 0x43, 0x4f, 0x4d, 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10, - 0x02, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x41, 0x4e, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x43, 0x48, - 0x41, 0x4e, 0x4e, 0x45, 0x4c, 0x10, 0x03, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x41, 0x4e, 0x5f, 0x56, - 0x49, 0x45, 0x57, 0x5f, 0x41, 0x4e, 0x44, 0x5f, 0x50, 0x4f, 0x53, 0x54, 0x5f, 0x43, 0x48, 0x41, - 0x4e, 0x4e, 0x45, 0x4c, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x42, 0x45, 0x43, 0x4f, 0x4d, 0x45, - 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x4d, 0x41, 0x53, 0x54, 0x45, 0x52, 0x10, 0x05, 0x12, - 0x16, 0x0a, 0x12, 0x42, 0x45, 0x43, 0x4f, 0x4d, 0x45, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, - 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, 0x06, 0x22, 0xd9, 0x0c, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x6d, - 0x75, 0x6e, 0x69, 0x74, 0x79, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x45, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x44, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x40, 0x0a, - 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, - 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x32, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x68, 0x61, - 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x12, 0x3f, 0x0a, 0x05, 0x63, 0x68, 0x61, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, - 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x43, 0x68, 0x61, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x63, - 0x68, 0x61, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x08, 0x62, 0x61, 0x6e, 0x5f, 0x6c, 0x69, 0x73, 0x74, - 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x62, 0x61, 0x6e, 0x4c, - 0x69, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, - 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x44, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, - 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, - 0x69, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x18, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x5f, 0x6d, - 0x61, 0x67, 0x6e, 0x65, 0x74, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x4d, 0x61, - 0x67, 0x6e, 0x65, 0x74, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x47, 0x0a, - 0x0e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, - 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x53, - 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x0d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x53, 0x65, - 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x5f, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, - 0x6e, 0x74, 0x72, 0x6f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6f, - 0x75, 0x74, 0x72, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x0c, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x72, 0x6f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x12, 0x20, 0x0a, 0x09, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x18, 0x0d, 0x20, - 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x61, 0x0a, 0x11, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, - 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x34, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, - 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x10, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x65, - 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x5c, 0x0a, 0x19, 0x63, 0x6f, 0x6d, - 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x5f, 0x6d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x10, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, - 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x17, - 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x30, 0x0a, 0x14, 0x61, 0x63, 0x74, 0x69, 0x76, - 0x65, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, - 0x11, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, - 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, 0x44, 0x12, 0x58, 0x0a, 0x0e, 0x62, 0x61, 0x6e, - 0x6e, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, - 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x42, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x4d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x73, 0x12, 0x51, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x61, - 0x74, 0x61, 0x18, 0x64, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x44, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x70, 0x72, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x55, 0x0a, 0x0c, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x4d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x51, 0x0a, - 0x0a, 0x43, 0x68, 0x61, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2d, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, - 0x79, 0x43, 0x68, 0x61, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x1a, 0x5a, 0x0a, 0x0f, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x31, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, - 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x67, 0x0a, 0x15, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x38, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x5c, 0x0a, 0x12, 0x42, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x4d, - 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x30, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, - 0x79, 0x42, 0x61, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x61, - 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x22, 0x42, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, - 0x42, 0x61, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2e, 0x0a, 0x13, 0x64, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x6c, 0x4d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x22, 0x5e, 0x0a, 0x16, 0x43, 0x6f, 0x6d, 0x6d, 0x75, - 0x6e, 0x69, 0x74, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, - 0x73, 0x12, 0x44, 0x0a, 0x1f, 0x70, 0x69, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x5f, 0x65, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1b, 0x70, 0x69, 0x6e, 0x4d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x41, 0x6c, 0x6c, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, - 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0xd9, 0x02, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x6d, - 0x75, 0x6e, 0x69, 0x74, 0x79, 0x43, 0x68, 0x61, 0x74, 0x12, 0x3e, 0x0a, 0x07, 0x6d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x43, - 0x68, 0x61, 0x74, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x40, 0x0a, 0x0b, 0x70, 0x65, 0x72, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, - 0x69, 0x74, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, - 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x32, 0x0a, 0x08, 0x69, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x68, 0x61, 0x74, 0x49, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, - 0x1f, 0x0a, 0x0b, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, - 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x55, 0x0a, 0x0c, - 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2f, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, - 0x74, 0x79, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x22, 0x64, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, - 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x61, 0x74, 0x65, - 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, - 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, - 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x92, 0x01, 0x0a, 0x0f, 0x52, 0x65, - 0x76, 0x65, 0x61, 0x6c, 0x65, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, - 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, - 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x04, 0x52, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, - 0x64, 0x73, 0x12, 0x2a, 0x0a, 0x10, 0x69, 0x73, 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x69, 0x73, - 0x41, 0x69, 0x72, 0x64, 0x72, 0x6f, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xf0, - 0x01, 0x0a, 0x16, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x54, 0x6f, 0x4a, 0x6f, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, - 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, - 0x19, 0x0a, 0x08, 0x65, 0x6e, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x65, 0x6e, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, - 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, - 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, - 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, - 0x6e, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, - 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, - 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x46, 0x0a, 0x11, 0x72, 0x65, 0x76, - 0x65, 0x61, 0x6c, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x06, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x52, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x65, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, - 0x10, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x65, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x73, 0x22, 0x9f, 0x01, 0x0a, 0x1c, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x45, - 0x64, 0x69, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, - 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, - 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x11, 0x72, - 0x65, 0x76, 0x65, 0x61, 0x6c, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x52, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x65, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x52, 0x10, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x65, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x73, 0x22, 0xae, 0x01, 0x0a, 0x1c, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, - 0x79, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x6f, - 0x4a, 0x6f, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6e, - 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x6e, - 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12, 0x21, - 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x49, - 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x4e, 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, - 0x79, 0x55, 0x73, 0x65, 0x72, 0x4b, 0x69, 0x63, 0x6b, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, - 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, - 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, - 0x74, 0x79, 0x49, 0x64, 0x22, 0xce, 0x02, 0x0a, 0x1e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, - 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x6f, 0x4a, 0x6f, 0x69, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x3c, 0x0a, - 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, - 0x75, 0x6e, 0x69, 0x74, 0x79, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x61, - 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, - 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x21, 0x0a, - 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x49, 0x64, - 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x67, 0x6e, 0x65, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, 0x67, 0x6e, 0x65, 0x74, 0x55, 0x72, 0x69, 0x12, - 0x3d, 0x0a, 0x1b, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x70, - 0x69, 0x63, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x18, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x54, - 0x6f, 0x70, 0x69, 0x63, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x25, - 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x05, - 0x73, 0x68, 0x61, 0x72, 0x64, 0x22, 0x52, 0x0a, 0x17, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, - 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x6f, 0x4c, 0x65, 0x61, 0x76, 0x65, - 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, - 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x6f, - 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x49, 0x64, 0x22, 0x58, 0x0a, 0x21, 0x43, 0x6f, 0x6d, - 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x41, 0x72, 0x63, - 0x68, 0x69, 0x76, 0x65, 0x4d, 0x61, 0x67, 0x6e, 0x65, 0x74, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x14, - 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, - 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x67, 0x6e, 0x65, 0x74, 0x5f, 0x75, - 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, 0x67, 0x6e, 0x65, 0x74, - 0x55, 0x72, 0x69, 0x22, 0xbf, 0x01, 0x0a, 0x0b, 0x57, 0x61, 0x6b, 0x75, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x03, 0x73, 0x69, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, - 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, - 0x6f, 0x61, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, - 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, - 0x68, 0x12, 0x22, 0x0a, 0x0c, 0x74, 0x68, 0x69, 0x72, 0x64, 0x50, 0x61, 0x72, 0x74, 0x79, 0x49, - 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x68, 0x69, 0x72, 0x64, 0x50, 0x61, - 0x72, 0x74, 0x79, 0x49, 0x64, 0x22, 0x7e, 0x0a, 0x1a, 0x57, 0x61, 0x6b, 0x75, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, - 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x66, 0x72, 0x6f, - 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x74, - 0x6f, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x70, 0x69, - 0x63, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, - 0x54, 0x6f, 0x70, 0x69, 0x63, 0x22, 0xa3, 0x01, 0x0a, 0x12, 0x57, 0x61, 0x6b, 0x75, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x57, 0x61, 0x6b, 0x75, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x41, - 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, - 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x31, 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x61, 0x6b, 0x75, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x22, 0xc3, 0x01, 0x0a, 0x1f, - 0x57, 0x61, 0x6b, 0x75, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x41, 0x72, 0x63, 0x68, 0x69, - 0x76, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, - 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x08, 0x6d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x61, 0x6b, 0x75, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x6f, - 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, - 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x64, 0x64, 0x69, - 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, - 0x67, 0x22, 0xce, 0x01, 0x0a, 0x17, 0x57, 0x61, 0x6b, 0x75, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x4b, 0x0a, - 0x08, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x2f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x61, 0x6b, 0x75, 0x4d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x64, - 0x65, 0x78, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x08, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x73, 0x1a, 0x66, 0x0a, 0x0d, 0x41, 0x72, - 0x63, 0x68, 0x69, 0x76, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3f, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x61, 0x6b, 0x75, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x22, 0x57, 0x0a, 0x1d, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x50, - 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x49, - 0x6e, 0x66, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x9e, 0x01, 0x0a, 0x13, - 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x6e, 0x6f, - 0x64, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, - 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x0a, - 0x73, 0x74, 0x6f, 0x72, 0x65, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x6f, 0x72, - 0x65, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x6e, 0x6f, 0x64, 0x65, - 0x73, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0xe8, 0x01, 0x0a, - 0x09, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x6e, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, - 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x21, 0x0a, - 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, - 0x0a, 0x05, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, - 0x6c, 0x65, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, - 0x0a, 0x07, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x07, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x64, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41, 0x74, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterEnum("protobuf.CommunityMember_Roles", CommunityMember_Roles_name, CommunityMember_Roles_value) + proto.RegisterEnum("protobuf.CommunityPermissions_Access", CommunityPermissions_Access_name, CommunityPermissions_Access_value) + proto.RegisterEnum("protobuf.CommunityTokenPermission_Type", CommunityTokenPermission_Type_name, CommunityTokenPermission_Type_value) + proto.RegisterType((*Grant)(nil), "protobuf.Grant") + proto.RegisterType((*CommunityMember)(nil), "protobuf.CommunityMember") + proto.RegisterType((*CommunityTokenMetadata)(nil), "protobuf.CommunityTokenMetadata") + proto.RegisterMapType((map[uint64]string)(nil), "protobuf.CommunityTokenMetadata.ContractAddressesEntry") + proto.RegisterType((*CommunityPermissions)(nil), "protobuf.CommunityPermissions") + proto.RegisterType((*TokenCriteria)(nil), "protobuf.TokenCriteria") + proto.RegisterMapType((map[uint64]string)(nil), "protobuf.TokenCriteria.ContractAddressesEntry") + proto.RegisterType((*CommunityTokenPermission)(nil), "protobuf.CommunityTokenPermission") + proto.RegisterType((*CommunityDescription)(nil), "protobuf.CommunityDescription") + proto.RegisterMapType((map[string]*CommunityBanInfo)(nil), "protobuf.CommunityDescription.BannedMembersEntry") + proto.RegisterMapType((map[string]*CommunityCategory)(nil), "protobuf.CommunityDescription.CategoriesEntry") + proto.RegisterMapType((map[string]*CommunityChat)(nil), "protobuf.CommunityDescription.ChatsEntry") + proto.RegisterMapType((map[string]*CommunityMember)(nil), "protobuf.CommunityDescription.MembersEntry") + proto.RegisterMapType((map[string][]byte)(nil), "protobuf.CommunityDescription.PrivateDataEntry") + proto.RegisterMapType((map[string]*CommunityTokenPermission)(nil), "protobuf.CommunityDescription.TokenPermissionsEntry") + proto.RegisterType((*CommunityBanInfo)(nil), "protobuf.CommunityBanInfo") + proto.RegisterType((*CommunityAdminSettings)(nil), "protobuf.CommunityAdminSettings") + proto.RegisterType((*CommunityChat)(nil), "protobuf.CommunityChat") + proto.RegisterMapType((map[string]*CommunityMember)(nil), "protobuf.CommunityChat.MembersEntry") + proto.RegisterType((*CommunityCategory)(nil), "protobuf.CommunityCategory") + proto.RegisterType((*RevealedAccount)(nil), "protobuf.RevealedAccount") + proto.RegisterType((*CommunityRequestToJoin)(nil), "protobuf.CommunityRequestToJoin") + proto.RegisterType((*CommunityEditSharedAddresses)(nil), "protobuf.CommunityEditSharedAddresses") + proto.RegisterType((*CommunityCancelRequestToJoin)(nil), "protobuf.CommunityCancelRequestToJoin") + proto.RegisterType((*CommunityUserKicked)(nil), "protobuf.CommunityUserKicked") + proto.RegisterType((*CommunityRequestToJoinResponse)(nil), "protobuf.CommunityRequestToJoinResponse") + proto.RegisterType((*CommunityRequestToLeave)(nil), "protobuf.CommunityRequestToLeave") + proto.RegisterType((*CommunityMessageArchiveMagnetlink)(nil), "protobuf.CommunityMessageArchiveMagnetlink") + proto.RegisterType((*WakuMessage)(nil), "protobuf.WakuMessage") + proto.RegisterType((*WakuMessageArchiveMetadata)(nil), "protobuf.WakuMessageArchiveMetadata") + proto.RegisterType((*WakuMessageArchive)(nil), "protobuf.WakuMessageArchive") + proto.RegisterType((*WakuMessageArchiveIndexMetadata)(nil), "protobuf.WakuMessageArchiveIndexMetadata") + proto.RegisterType((*WakuMessageArchiveIndex)(nil), "protobuf.WakuMessageArchiveIndex") + proto.RegisterMapType((map[string]*WakuMessageArchiveIndexMetadata)(nil), "protobuf.WakuMessageArchiveIndex.ArchivesEntry") + proto.RegisterType((*CommunityPublicStorenodesInfo)(nil), "protobuf.CommunityPublicStorenodesInfo") + proto.RegisterType((*CommunityStorenodes)(nil), "protobuf.CommunityStorenodes") + proto.RegisterType((*Storenode)(nil), "protobuf.Storenode") } -var ( - file_communities_proto_rawDescOnce sync.Once - file_communities_proto_rawDescData = file_communities_proto_rawDesc -) - -func file_communities_proto_rawDescGZIP() []byte { - file_communities_proto_rawDescOnce.Do(func() { - file_communities_proto_rawDescData = protoimpl.X.CompressGZIP(file_communities_proto_rawDescData) - }) - return file_communities_proto_rawDescData +func init() { + proto.RegisterFile("communities.proto", fileDescriptor_f937943d74c1cd8b) } -var file_communities_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_communities_proto_msgTypes = make([]protoimpl.MessageInfo, 37) -var file_communities_proto_goTypes = []interface{}{ - (CommunityMember_Roles)(0), // 0: protobuf.CommunityMember.Roles - (CommunityPermissions_Access)(0), // 1: protobuf.CommunityPermissions.Access - (CommunityTokenPermission_Type)(0), // 2: protobuf.CommunityTokenPermission.Type - (*Grant)(nil), // 3: protobuf.Grant - (*CommunityMember)(nil), // 4: protobuf.CommunityMember - (*CommunityTokenMetadata)(nil), // 5: protobuf.CommunityTokenMetadata - (*CommunityPermissions)(nil), // 6: protobuf.CommunityPermissions - (*TokenCriteria)(nil), // 7: protobuf.TokenCriteria - (*CommunityTokenPermission)(nil), // 8: protobuf.CommunityTokenPermission - (*CommunityDescription)(nil), // 9: protobuf.CommunityDescription - (*CommunityBanInfo)(nil), // 10: protobuf.CommunityBanInfo - (*CommunityAdminSettings)(nil), // 11: protobuf.CommunityAdminSettings - (*CommunityChat)(nil), // 12: protobuf.CommunityChat - (*CommunityCategory)(nil), // 13: protobuf.CommunityCategory - (*RevealedAccount)(nil), // 14: protobuf.RevealedAccount - (*CommunityRequestToJoin)(nil), // 15: protobuf.CommunityRequestToJoin - (*CommunityEditSharedAddresses)(nil), // 16: protobuf.CommunityEditSharedAddresses - (*CommunityCancelRequestToJoin)(nil), // 17: protobuf.CommunityCancelRequestToJoin - (*CommunityUserKicked)(nil), // 18: protobuf.CommunityUserKicked - (*CommunityRequestToJoinResponse)(nil), // 19: protobuf.CommunityRequestToJoinResponse - (*CommunityRequestToLeave)(nil), // 20: protobuf.CommunityRequestToLeave - (*CommunityMessageArchiveMagnetlink)(nil), // 21: protobuf.CommunityMessageArchiveMagnetlink - (*WakuMessage)(nil), // 22: protobuf.WakuMessage - (*WakuMessageArchiveMetadata)(nil), // 23: protobuf.WakuMessageArchiveMetadata - (*WakuMessageArchive)(nil), // 24: protobuf.WakuMessageArchive - (*WakuMessageArchiveIndexMetadata)(nil), // 25: protobuf.WakuMessageArchiveIndexMetadata - (*WakuMessageArchiveIndex)(nil), // 26: protobuf.WakuMessageArchiveIndex - (*CommunityPublicStorenodesInfo)(nil), // 27: protobuf.CommunityPublicStorenodesInfo - (*CommunityStorenodes)(nil), // 28: protobuf.CommunityStorenodes - (*Storenode)(nil), // 29: protobuf.Storenode - nil, // 30: protobuf.CommunityTokenMetadata.ContractAddressesEntry - nil, // 31: protobuf.TokenCriteria.ContractAddressesEntry - nil, // 32: protobuf.CommunityDescription.MembersEntry - nil, // 33: protobuf.CommunityDescription.ChatsEntry - nil, // 34: protobuf.CommunityDescription.CategoriesEntry - nil, // 35: protobuf.CommunityDescription.TokenPermissionsEntry - nil, // 36: protobuf.CommunityDescription.BannedMembersEntry - nil, // 37: protobuf.CommunityDescription.PrivateDataEntry - nil, // 38: protobuf.CommunityChat.MembersEntry - nil, // 39: protobuf.WakuMessageArchiveIndex.ArchivesEntry - (CommunityTokenType)(0), // 40: protobuf.CommunityTokenType - (*ChatIdentity)(nil), // 41: protobuf.ChatIdentity - (*Shard)(nil), // 42: protobuf.Shard -} -var file_communities_proto_depIdxs = []int32{ - 0, // 0: protobuf.CommunityMember.roles:type_name -> protobuf.CommunityMember.Roles - 14, // 1: protobuf.CommunityMember.revealed_accounts:type_name -> protobuf.RevealedAccount - 30, // 2: protobuf.CommunityTokenMetadata.contract_addresses:type_name -> protobuf.CommunityTokenMetadata.ContractAddressesEntry - 40, // 3: protobuf.CommunityTokenMetadata.tokenType:type_name -> protobuf.CommunityTokenType - 1, // 4: protobuf.CommunityPermissions.access:type_name -> protobuf.CommunityPermissions.Access - 31, // 5: protobuf.TokenCriteria.contract_addresses:type_name -> protobuf.TokenCriteria.ContractAddressesEntry - 40, // 6: protobuf.TokenCriteria.type:type_name -> protobuf.CommunityTokenType - 2, // 7: protobuf.CommunityTokenPermission.type:type_name -> protobuf.CommunityTokenPermission.Type - 7, // 8: protobuf.CommunityTokenPermission.token_criteria:type_name -> protobuf.TokenCriteria - 32, // 9: protobuf.CommunityDescription.members:type_name -> protobuf.CommunityDescription.MembersEntry - 6, // 10: protobuf.CommunityDescription.permissions:type_name -> protobuf.CommunityPermissions - 41, // 11: protobuf.CommunityDescription.identity:type_name -> protobuf.ChatIdentity - 33, // 12: protobuf.CommunityDescription.chats:type_name -> protobuf.CommunityDescription.ChatsEntry - 34, // 13: protobuf.CommunityDescription.categories:type_name -> protobuf.CommunityDescription.CategoriesEntry - 11, // 14: protobuf.CommunityDescription.admin_settings:type_name -> protobuf.CommunityAdminSettings - 35, // 15: protobuf.CommunityDescription.token_permissions:type_name -> protobuf.CommunityDescription.TokenPermissionsEntry - 5, // 16: protobuf.CommunityDescription.community_tokens_metadata:type_name -> protobuf.CommunityTokenMetadata - 36, // 17: protobuf.CommunityDescription.banned_members:type_name -> protobuf.CommunityDescription.BannedMembersEntry - 37, // 18: protobuf.CommunityDescription.privateData:type_name -> protobuf.CommunityDescription.PrivateDataEntry - 38, // 19: protobuf.CommunityChat.members:type_name -> protobuf.CommunityChat.MembersEntry - 6, // 20: protobuf.CommunityChat.permissions:type_name -> protobuf.CommunityPermissions - 41, // 21: protobuf.CommunityChat.identity:type_name -> protobuf.ChatIdentity - 14, // 22: protobuf.CommunityRequestToJoin.revealed_accounts:type_name -> protobuf.RevealedAccount - 14, // 23: protobuf.CommunityEditSharedAddresses.revealed_accounts:type_name -> protobuf.RevealedAccount - 9, // 24: protobuf.CommunityRequestToJoinResponse.community:type_name -> protobuf.CommunityDescription - 42, // 25: protobuf.CommunityRequestToJoinResponse.shard:type_name -> protobuf.Shard - 23, // 26: protobuf.WakuMessageArchive.metadata:type_name -> protobuf.WakuMessageArchiveMetadata - 22, // 27: protobuf.WakuMessageArchive.messages:type_name -> protobuf.WakuMessage - 23, // 28: protobuf.WakuMessageArchiveIndexMetadata.metadata:type_name -> protobuf.WakuMessageArchiveMetadata - 39, // 29: protobuf.WakuMessageArchiveIndex.archives:type_name -> protobuf.WakuMessageArchiveIndex.ArchivesEntry - 29, // 30: protobuf.CommunityStorenodes.storenodes:type_name -> protobuf.Storenode - 4, // 31: protobuf.CommunityDescription.MembersEntry.value:type_name -> protobuf.CommunityMember - 12, // 32: protobuf.CommunityDescription.ChatsEntry.value:type_name -> protobuf.CommunityChat - 13, // 33: protobuf.CommunityDescription.CategoriesEntry.value:type_name -> protobuf.CommunityCategory - 8, // 34: protobuf.CommunityDescription.TokenPermissionsEntry.value:type_name -> protobuf.CommunityTokenPermission - 10, // 35: protobuf.CommunityDescription.BannedMembersEntry.value:type_name -> protobuf.CommunityBanInfo - 4, // 36: protobuf.CommunityChat.MembersEntry.value:type_name -> protobuf.CommunityMember - 25, // 37: protobuf.WakuMessageArchiveIndex.ArchivesEntry.value:type_name -> protobuf.WakuMessageArchiveIndexMetadata - 38, // [38:38] is the sub-list for method output_type - 38, // [38:38] is the sub-list for method input_type - 38, // [38:38] is the sub-list for extension type_name - 38, // [38:38] is the sub-list for extension extendee - 0, // [0:38] is the sub-list for field type_name -} - -func init() { file_communities_proto_init() } -func file_communities_proto_init() { - if File_communities_proto != nil { - return - } - file_chat_identity_proto_init() - file_enums_proto_init() - file_shard_proto_init() - if !protoimpl.UnsafeEnabled { - file_communities_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Grant); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityMember); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityTokenMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityPermissions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TokenCriteria); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityTokenPermission); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityDescription); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityBanInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityAdminSettings); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityChat); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityCategory); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RevealedAccount); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityRequestToJoin); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityEditSharedAddresses); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityCancelRequestToJoin); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityUserKicked); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityRequestToJoinResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityRequestToLeave); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityMessageArchiveMagnetlink); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WakuMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WakuMessageArchiveMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WakuMessageArchive); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WakuMessageArchiveIndexMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WakuMessageArchiveIndex); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityPublicStorenodesInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityStorenodes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_communities_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Storenode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_communities_proto_rawDesc, - NumEnums: 3, - NumMessages: 37, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_communities_proto_goTypes, - DependencyIndexes: file_communities_proto_depIdxs, - EnumInfos: file_communities_proto_enumTypes, - MessageInfos: file_communities_proto_msgTypes, - }.Build() - File_communities_proto = out.File - file_communities_proto_rawDesc = nil - file_communities_proto_goTypes = nil - file_communities_proto_depIdxs = nil +var fileDescriptor_f937943d74c1cd8b = []byte{ + // 2421 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0x5b, 0x73, 0x23, 0x47, + 0xf5, 0xcf, 0x68, 0x74, 0x3d, 0x92, 0x6c, 0xb9, 0xf7, 0xe2, 0x59, 0xef, 0x6e, 0x56, 0x3b, 0xff, + 0x7f, 0x0a, 0x67, 0x29, 0xb4, 0x89, 0x03, 0x45, 0x2a, 0x21, 0x17, 0x59, 0x16, 0x41, 0xd9, 0x95, + 0xe4, 0xb4, 0xe5, 0x6c, 0x92, 0x0a, 0x4c, 0xb5, 0x67, 0xda, 0xf6, 0x94, 0xa5, 0x19, 0x31, 0xdd, + 0x72, 0x21, 0x1e, 0x78, 0x80, 0x6f, 0x00, 0xef, 0xf0, 0xc0, 0x1b, 0x0f, 0xf0, 0x11, 0x78, 0xa0, + 0x8a, 0xc7, 0xbc, 0xe7, 0x03, 0x50, 0xc5, 0x23, 0x1f, 0x81, 0xea, 0xcb, 0x8c, 0x66, 0x24, 0x79, + 0xbd, 0xd9, 0x40, 0x15, 0x4f, 0x9a, 0x73, 0xfa, 0xf4, 0xaf, 0x4f, 0x9f, 0x3e, 0xb7, 0x6e, 0xc1, + 0x96, 0x1b, 0x4e, 0x26, 0xb3, 0xc0, 0xe7, 0x3e, 0x65, 0xad, 0x69, 0x14, 0xf2, 0x10, 0x95, 0xe5, + 0xcf, 0xc9, 0xec, 0x74, 0xe7, 0x86, 0x7b, 0x4e, 0xb8, 0xe3, 0x7b, 0x34, 0xe0, 0x3e, 0x9f, 0xab, + 0xe1, 0x9d, 0x2a, 0x0d, 0x66, 0x13, 0x16, 0x13, 0xec, 0x9c, 0x44, 0x9e, 0x22, 0xec, 0x4b, 0x28, + 0x7c, 0x14, 0x91, 0x80, 0xa3, 0x87, 0x50, 0x8b, 0x61, 0xe7, 0x8e, 0xef, 0x59, 0x46, 0xd3, 0xd8, + 0xad, 0xe1, 0x6a, 0xc2, 0xeb, 0x79, 0xe8, 0x2e, 0x54, 0x26, 0x74, 0x72, 0x42, 0x23, 0x31, 0x9e, + 0x93, 0xe3, 0x65, 0xc5, 0xe8, 0x79, 0x68, 0x1b, 0x4a, 0x7a, 0x65, 0xcb, 0x6c, 0x1a, 0xbb, 0x15, + 0x5c, 0x14, 0x64, 0xcf, 0x43, 0x37, 0xa1, 0xe0, 0x8e, 0x43, 0xf7, 0xc2, 0xca, 0x37, 0x8d, 0xdd, + 0x3c, 0x56, 0x84, 0xfd, 0xf7, 0x1c, 0x6c, 0x76, 0x62, 0xec, 0xbe, 0x04, 0x41, 0x3f, 0x80, 0x42, + 0x14, 0x8e, 0x29, 0xb3, 0x8c, 0xa6, 0xb9, 0xbb, 0xb1, 0xf7, 0xa0, 0x15, 0x6f, 0xaa, 0xb5, 0x24, + 0xd9, 0xc2, 0x42, 0x0c, 0x2b, 0x69, 0xf4, 0x31, 0x6c, 0x45, 0xf4, 0x92, 0x92, 0x31, 0xf5, 0x1c, + 0xe2, 0xba, 0xe1, 0x2c, 0xe0, 0xcc, 0xca, 0x35, 0xcd, 0xdd, 0xea, 0xde, 0x9d, 0x05, 0x04, 0xd6, + 0x22, 0x6d, 0x25, 0xb1, 0x9f, 0xb3, 0x0c, 0xdc, 0x88, 0xb2, 0x4c, 0x86, 0x1e, 0xc1, 0xd6, 0x98, + 0x30, 0xee, 0xcc, 0xa6, 0x1e, 0xe1, 0xd4, 0x51, 0x8a, 0x9b, 0x52, 0xf1, 0x4d, 0x31, 0x70, 0x2c, + 0xf9, 0x1d, 0xb9, 0x85, 0xdf, 0x18, 0x50, 0x90, 0x8a, 0xa0, 0x3a, 0x54, 0xf0, 0xf0, 0x69, 0xd7, + 0x19, 0x0c, 0x07, 0xdd, 0xc6, 0x2b, 0x68, 0x03, 0x40, 0x92, 0xc3, 0x67, 0x83, 0x2e, 0x6e, 0x18, + 0x09, 0xdd, 0x3e, 0xe8, 0xf7, 0x06, 0x8d, 0x3c, 0xba, 0x05, 0x5b, 0x92, 0x1e, 0x0d, 0x9f, 0x74, + 0x07, 0x4e, 0xbf, 0x7d, 0x34, 0xea, 0xe2, 0x46, 0xc1, 0xce, 0x97, 0x73, 0x8d, 0x9c, 0x9d, 0x2f, + 0x9b, 0x0d, 0xf3, 0x91, 0x12, 0xe8, 0xb7, 0x07, 0xed, 0x8f, 0xba, 0xce, 0xf1, 0x51, 0x17, 0x1f, + 0x3d, 0xba, 0xa5, 0x58, 0xc3, 0x83, 0x2e, 0x6e, 0x8f, 0xba, 0x4e, 0x67, 0x38, 0x18, 0x75, 0x07, + 0x23, 0xfb, 0xd7, 0x26, 0xdc, 0x4e, 0xcc, 0x33, 0x0a, 0x2f, 0x68, 0xd0, 0xa7, 0x9c, 0x78, 0x84, + 0x13, 0x74, 0x0a, 0xc8, 0x0d, 0x03, 0x1e, 0x11, 0x97, 0x3b, 0xc4, 0xf3, 0x22, 0xca, 0x98, 0x36, + 0x6e, 0x75, 0xef, 0x87, 0x6b, 0x8c, 0x9b, 0x99, 0xdd, 0xea, 0xe8, 0xa9, 0xed, 0x78, 0x66, 0x37, + 0xe0, 0xd1, 0x1c, 0x6f, 0xb9, 0xcb, 0x7c, 0xd4, 0x84, 0xaa, 0x47, 0x99, 0x1b, 0xf9, 0x53, 0xee, + 0x87, 0x81, 0xf4, 0x8c, 0x0a, 0x4e, 0xb3, 0x84, 0x0f, 0xf8, 0x13, 0x72, 0x46, 0xb5, 0x6b, 0x28, + 0x02, 0xbd, 0x03, 0x15, 0x2e, 0x96, 0x1c, 0xcd, 0xa7, 0x54, 0x7a, 0xc7, 0xc6, 0xde, 0xbd, 0xab, + 0xd4, 0x12, 0x32, 0x78, 0x21, 0x8e, 0x6e, 0x43, 0x91, 0xcd, 0x27, 0x27, 0xe1, 0xd8, 0x2a, 0x28, + 0x6f, 0x53, 0x14, 0x42, 0x90, 0x0f, 0xc8, 0x84, 0x5a, 0x45, 0xc9, 0x95, 0xdf, 0x68, 0x07, 0xca, + 0x1e, 0x75, 0xfd, 0x09, 0x19, 0x33, 0xab, 0xd4, 0x34, 0x76, 0xeb, 0x38, 0xa1, 0x77, 0x0e, 0x84, + 0xf5, 0xd6, 0x6d, 0x14, 0x35, 0xc0, 0xbc, 0xa0, 0x73, 0x19, 0x07, 0x79, 0x2c, 0x3e, 0xc5, 0x2e, + 0x2e, 0xc9, 0x78, 0x46, 0xf5, 0x0e, 0x15, 0xf1, 0x4e, 0xee, 0x6d, 0xc3, 0xfe, 0x87, 0x01, 0x37, + 0x13, 0x7d, 0x0f, 0x69, 0x34, 0xf1, 0x19, 0xf3, 0xc3, 0x80, 0xa1, 0x3b, 0x50, 0xa6, 0x01, 0x73, + 0xc2, 0x60, 0xac, 0x90, 0xca, 0xb8, 0x44, 0x03, 0x36, 0x0c, 0xc6, 0x73, 0x64, 0x41, 0x69, 0x1a, + 0xf9, 0x97, 0x84, 0x2b, 0xbc, 0x32, 0x8e, 0x49, 0xf4, 0x1e, 0x14, 0x89, 0xeb, 0x52, 0xc6, 0xa4, + 0xb9, 0x36, 0xf6, 0x5e, 0x5b, 0x63, 0x94, 0xd4, 0x22, 0xad, 0xb6, 0x14, 0xc6, 0x7a, 0x92, 0xfd, + 0x39, 0x14, 0x15, 0x07, 0x21, 0xd8, 0x38, 0x1e, 0x3c, 0x19, 0x0c, 0x9f, 0x0d, 0x9c, 0x76, 0xa7, + 0xd3, 0x3d, 0x3a, 0x6a, 0xbc, 0x82, 0x36, 0xa1, 0xda, 0x3e, 0x1e, 0x0d, 0x25, 0xe3, 0x70, 0xd4, + 0x30, 0xd0, 0x36, 0x6c, 0xf6, 0x06, 0x9f, 0xf6, 0x46, 0xed, 0x51, 0x6f, 0x38, 0x70, 0x86, 0x83, + 0xa7, 0x9f, 0x37, 0x72, 0x3b, 0xb9, 0xb2, 0x81, 0xb6, 0xa0, 0xde, 0x6f, 0x0f, 0x8e, 0xdb, 0x4f, + 0x63, 0x59, 0xd3, 0xfe, 0x93, 0x09, 0x75, 0x79, 0x1c, 0x9d, 0xc8, 0xe7, 0x34, 0xf2, 0x09, 0xfa, + 0xe9, 0x73, 0x7c, 0xac, 0xb5, 0xd0, 0x3b, 0x33, 0xe9, 0x1b, 0xb8, 0xd6, 0x1b, 0x90, 0xe7, 0xc2, + 0x3b, 0x72, 0x2f, 0xe0, 0x1d, 0x52, 0x32, 0xe5, 0x18, 0xe6, 0x5a, 0xc7, 0xc8, 0x67, 0x1c, 0xa3, + 0x48, 0x26, 0x22, 0xf0, 0x95, 0x13, 0xc9, 0x9c, 0xa0, 0x39, 0x22, 0xd9, 0x49, 0x6f, 0x73, 0x7c, + 0x8f, 0x59, 0xc5, 0xa6, 0xb9, 0x9b, 0xc7, 0x65, 0xc9, 0xe8, 0x79, 0x0c, 0x3d, 0x80, 0xaa, 0x38, + 0xd6, 0x29, 0xe1, 0x9c, 0x46, 0x81, 0x74, 0xaa, 0x0a, 0x06, 0x1a, 0xb0, 0x43, 0xc5, 0xc9, 0xb8, + 0x5c, 0x59, 0x7a, 0x50, 0x42, 0x8b, 0x70, 0x51, 0x6b, 0xf4, 0x82, 0x67, 0xd4, 0xb7, 0x2a, 0x2a, + 0x5c, 0x52, 0xac, 0xff, 0x90, 0x53, 0xfe, 0xce, 0x04, 0x2b, 0x6b, 0xa6, 0x85, 0xd3, 0xa0, 0x0d, + 0xc8, 0xe9, 0x24, 0x5f, 0xc1, 0x39, 0xdf, 0x43, 0xef, 0x66, 0x0c, 0xfd, 0x9d, 0xab, 0x0c, 0xbd, + 0x40, 0x68, 0xa5, 0x6c, 0xfe, 0x3e, 0x6c, 0x28, 0x5b, 0xb9, 0xfa, 0x84, 0x2d, 0x53, 0x3a, 0xc0, + 0xf6, 0x15, 0x0e, 0x80, 0xeb, 0x3c, 0xe3, 0x44, 0x77, 0xa0, 0xac, 0x6b, 0x07, 0xb3, 0xf2, 0x4d, + 0x73, 0xb7, 0x82, 0x4b, 0xaa, 0x78, 0x30, 0x74, 0x1f, 0xc0, 0x67, 0x4e, 0x1c, 0x28, 0x05, 0x19, + 0x28, 0x15, 0x9f, 0x1d, 0x2a, 0x86, 0xfd, 0x17, 0x03, 0xf2, 0x32, 0x1f, 0xdc, 0x03, 0x2b, 0x76, + 0x75, 0x95, 0x56, 0x0f, 0xbb, 0xb8, 0xdf, 0x3b, 0x3a, 0xea, 0x0d, 0x07, 0x8d, 0x57, 0x50, 0x03, + 0x6a, 0xfb, 0xdd, 0xce, 0xb0, 0x1f, 0xe7, 0x60, 0xe9, 0xdc, 0x9a, 0xd3, 0xef, 0xf6, 0xf7, 0xbb, + 0xb8, 0x91, 0x43, 0x37, 0xa1, 0xd1, 0x69, 0x0f, 0x9c, 0x4f, 0x7b, 0xdd, 0x67, 0x4e, 0xe7, 0x27, + 0xed, 0xc1, 0xa0, 0xfb, 0xb4, 0x61, 0xa2, 0xfb, 0x70, 0x27, 0xe1, 0xb6, 0x07, 0x07, 0xce, 0xe1, + 0xf0, 0x68, 0x94, 0x0c, 0xe7, 0xd1, 0x36, 0xdc, 0xd0, 0x38, 0xd9, 0x6c, 0x8e, 0x6e, 0x03, 0xca, + 0x0c, 0xa8, 0x62, 0x50, 0xb4, 0xbf, 0xae, 0xa5, 0x52, 0xc5, 0x41, 0x36, 0x47, 0xaa, 0x72, 0x63, + 0xa4, 0xea, 0x24, 0xea, 0x42, 0x49, 0x95, 0xd8, 0xb8, 0xa4, 0x7d, 0x77, 0xcd, 0xd1, 0xa4, 0x60, + 0x5a, 0xaa, 0x42, 0xea, 0x88, 0x8a, 0xe7, 0xa2, 0x0f, 0xa1, 0x3a, 0x5d, 0x64, 0x0c, 0x19, 0x1a, + 0xd5, 0xbd, 0x57, 0x9f, 0x9f, 0x57, 0x70, 0x7a, 0x0a, 0xda, 0x83, 0x72, 0xdc, 0x54, 0xc8, 0x63, + 0xa8, 0xee, 0xdd, 0x4e, 0x4d, 0x97, 0xa7, 0xa5, 0x46, 0x71, 0x22, 0x87, 0x3e, 0x80, 0x82, 0x38, + 0x47, 0x15, 0x3f, 0xd5, 0xbd, 0xd7, 0xaf, 0x51, 0x5d, 0xa0, 0x68, 0xc5, 0xd5, 0x3c, 0x74, 0x1f, + 0xca, 0x27, 0x24, 0x70, 0xc6, 0x3e, 0xe3, 0x56, 0x49, 0x38, 0x86, 0x0c, 0xd1, 0xd2, 0x09, 0x09, + 0x9e, 0xfa, 0x8c, 0xa3, 0x01, 0x80, 0x4b, 0x38, 0x3d, 0x0b, 0x23, 0x9f, 0x8a, 0x38, 0x5b, 0x4a, + 0x3a, 0xeb, 0x17, 0x49, 0x26, 0xa8, 0x95, 0x52, 0x08, 0xe8, 0x6d, 0xb0, 0x48, 0xe4, 0x9e, 0xfb, + 0x97, 0xd4, 0x99, 0x90, 0xb3, 0x80, 0xf2, 0xb1, 0x1f, 0x5c, 0xe8, 0x26, 0xa0, 0x22, 0x4f, 0xe5, + 0xb6, 0x1e, 0xef, 0x27, 0xc3, 0xb2, 0x17, 0x40, 0x1f, 0xc1, 0x06, 0xf1, 0x26, 0x7e, 0xe0, 0x30, + 0xca, 0xb9, 0x1f, 0x9c, 0x31, 0x0b, 0xa4, 0x8d, 0x9a, 0x6b, 0xb4, 0x69, 0x0b, 0xc1, 0x23, 0x2d, + 0x87, 0xeb, 0x24, 0x4d, 0xa2, 0xff, 0x83, 0xba, 0x1f, 0xf0, 0x28, 0x74, 0x26, 0x94, 0x31, 0x51, + 0x31, 0xab, 0x32, 0x44, 0x6b, 0x92, 0xd9, 0x57, 0x3c, 0x21, 0x14, 0xce, 0xd2, 0x42, 0x35, 0x25, + 0x24, 0x99, 0xb1, 0x50, 0x13, 0x2a, 0x34, 0x70, 0xa3, 0xf9, 0x94, 0x53, 0xcf, 0xaa, 0x8b, 0xc0, + 0x91, 0xc6, 0x5b, 0x30, 0x45, 0x4a, 0xe4, 0xe4, 0x8c, 0x59, 0x1b, 0x32, 0xe4, 0xe4, 0x37, 0x22, + 0xb0, 0xa5, 0x42, 0x39, 0xed, 0x2e, 0x9b, 0xd2, 0xb2, 0xdf, 0xbf, 0xc6, 0xb2, 0x4b, 0x09, 0x42, + 0xdb, 0xb7, 0xc1, 0x97, 0xd8, 0xe8, 0x4b, 0xb8, 0xb3, 0xe8, 0x34, 0xe5, 0x28, 0x73, 0x26, 0xba, + 0xeb, 0xb0, 0x1a, 0x72, 0xa9, 0xe6, 0x75, 0xdd, 0x09, 0xde, 0x76, 0x33, 0x7c, 0x96, 0x34, 0x3d, + 0x6f, 0xc0, 0x4d, 0xe2, 0x72, 0x79, 0x84, 0xca, 0xf7, 0x1d, 0xd9, 0xda, 0x59, 0x5b, 0xf2, 0xfc, + 0x90, 0x1a, 0xd3, 0x41, 0xd2, 0x91, 0x99, 0x7e, 0x03, 0x72, 0xbd, 0x03, 0x0b, 0xa9, 0x54, 0xd8, + 0x3b, 0x40, 0x9f, 0xc1, 0xc6, 0x09, 0x09, 0x02, 0xea, 0xc5, 0x08, 0xd6, 0x0d, 0xa9, 0xd4, 0x9b, + 0xd7, 0xec, 0x7f, 0x5f, 0x4e, 0xca, 0xc4, 0x5f, 0xfd, 0x24, 0xcd, 0x43, 0x9f, 0x40, 0x55, 0x67, + 0xb2, 0x03, 0xb1, 0x57, 0x4f, 0xc2, 0x3e, 0xbe, 0x06, 0xf6, 0x70, 0x31, 0x43, 0x81, 0xa6, 0x31, + 0x76, 0x8e, 0xa1, 0x96, 0x5e, 0x31, 0x5d, 0x20, 0x2a, 0xaa, 0x40, 0x3c, 0x4e, 0x17, 0x88, 0x4c, + 0x4b, 0xbc, 0xd4, 0x55, 0xa7, 0x6a, 0xc7, 0xce, 0x27, 0x00, 0x8b, 0x68, 0x5c, 0x03, 0xfa, 0xbd, + 0x2c, 0xe8, 0xf6, 0x1a, 0x50, 0x31, 0x3f, 0x0d, 0xf9, 0x05, 0x6c, 0x2e, 0xc5, 0xde, 0x1a, 0xdc, + 0x37, 0xb3, 0xb8, 0x77, 0xd7, 0xe1, 0x2a, 0x90, 0x79, 0x1a, 0xfb, 0x0c, 0x6e, 0xad, 0xf5, 0xbe, + 0x35, 0x2b, 0xbc, 0x9d, 0x5d, 0xc1, 0xbe, 0xbe, 0xd2, 0xa5, 0x17, 0xfa, 0x12, 0xd0, 0xea, 0x31, + 0xaf, 0x59, 0xe5, 0x8d, 0xec, 0x2a, 0x3b, 0x6b, 0x56, 0xd9, 0x27, 0x41, 0x2f, 0x38, 0x0d, 0xd3, + 0xe8, 0xef, 0x43, 0x63, 0xf9, 0xb4, 0xd7, 0x60, 0x67, 0x2a, 0x7e, 0x2d, 0x5d, 0xf1, 0xf7, 0xa1, + 0xb1, 0x0c, 0x8f, 0x5a, 0x70, 0xc3, 0xa3, 0x63, 0xca, 0xa9, 0x43, 0xc6, 0xe3, 0x38, 0x61, 0x30, + 0xdd, 0x8c, 0x6e, 0xa9, 0xa1, 0xf6, 0x78, 0xac, 0xb3, 0x06, 0xb3, 0x7f, 0x96, 0xba, 0x4e, 0x64, + 0x32, 0x15, 0x3a, 0x80, 0x07, 0x53, 0x3f, 0x88, 0x21, 0x34, 0x9c, 0x0a, 0x31, 0x1a, 0x90, 0x93, + 0x31, 0xf5, 0x34, 0xea, 0xdd, 0xa9, 0x1f, 0x68, 0x3c, 0x89, 0xac, 0x2d, 0x25, 0x45, 0xec, 0xaf, + 0x73, 0x50, 0xcf, 0xf8, 0x08, 0x7a, 0x7f, 0x51, 0xe2, 0x54, 0xdf, 0xf8, 0xff, 0x57, 0x78, 0xd3, + 0x8b, 0xd5, 0xb6, 0xdc, 0xb7, 0xab, 0x6d, 0xe6, 0x0b, 0xd6, 0xb6, 0x07, 0x50, 0xd5, 0x95, 0x43, + 0x5e, 0x97, 0x55, 0x5b, 0x19, 0x17, 0x13, 0x71, 0x5b, 0xde, 0x81, 0xf2, 0x34, 0x64, 0xbe, 0xbc, + 0x12, 0x89, 0x82, 0x59, 0xc0, 0x09, 0xfd, 0x5f, 0x8a, 0x5a, 0xdb, 0x83, 0xad, 0x95, 0x30, 0x59, + 0x56, 0xd4, 0x58, 0x51, 0x34, 0xee, 0x8c, 0x73, 0xd9, 0x2b, 0x53, 0xa2, 0xbc, 0x99, 0x55, 0xde, + 0xfe, 0xad, 0x01, 0x9b, 0x4b, 0xb7, 0x69, 0x71, 0x99, 0xd1, 0xdd, 0xbf, 0x5e, 0x20, 0x26, 0xd1, + 0x3d, 0xa8, 0x30, 0xff, 0x2c, 0x20, 0x7c, 0x16, 0xc5, 0x1e, 0xbb, 0x60, 0x88, 0x2e, 0xdb, 0x3d, + 0x27, 0xbe, 0xea, 0xb2, 0x4d, 0xd5, 0x65, 0x4b, 0x86, 0xe8, 0xfd, 0x1e, 0x41, 0xc3, 0x67, 0x6d, + 0x3f, 0xf2, 0xa2, 0x70, 0xaa, 0xfb, 0x60, 0x69, 0xe7, 0x32, 0x5e, 0xe1, 0xdb, 0xff, 0x32, 0x52, + 0x7e, 0x8b, 0xe9, 0xcf, 0x67, 0x94, 0xf1, 0x51, 0xf8, 0x71, 0xe8, 0x5f, 0xd5, 0x58, 0xe9, 0x9b, + 0x59, 0x6a, 0xe7, 0xe2, 0x66, 0x36, 0x10, 0x9b, 0xbf, 0xf2, 0x29, 0x63, 0xf9, 0x8d, 0x24, 0xbf, + 0xfa, 0x46, 0xf2, 0x10, 0x6a, 0x9e, 0xcf, 0xa6, 0x63, 0x32, 0x57, 0xd0, 0x05, 0x7d, 0x19, 0x56, + 0x3c, 0x09, 0xff, 0xe3, 0x75, 0xef, 0x15, 0xc5, 0x6b, 0xde, 0x2b, 0x56, 0xdf, 0x2a, 0xec, 0x3f, + 0x18, 0x70, 0x2f, 0xd9, 0x72, 0xd7, 0xf3, 0xf9, 0xd1, 0x39, 0x89, 0xa8, 0xb7, 0xb8, 0x3c, 0xad, + 0xdf, 0xf8, 0xf2, 0x26, 0x72, 0xab, 0x9b, 0x58, 0xab, 0xa1, 0xf9, 0xcd, 0x35, 0xfc, 0x73, 0x5a, + 0xc3, 0x0e, 0x09, 0x5c, 0x3a, 0xfe, 0x9f, 0x3e, 0x1a, 0x7b, 0x00, 0x37, 0x12, 0x7d, 0x8f, 0x19, + 0x8d, 0x9e, 0xf8, 0xee, 0x05, 0xf5, 0x5e, 0xda, 0x90, 0xf6, 0x57, 0x39, 0x78, 0x75, 0xbd, 0x57, + 0x62, 0xca, 0xa6, 0x61, 0xc0, 0xe8, 0x15, 0xd8, 0x3f, 0x82, 0x4a, 0x82, 0xf3, 0x9c, 0x8c, 0x96, + 0xea, 0x13, 0xf0, 0x62, 0x82, 0x88, 0x5e, 0xe2, 0xba, 0x54, 0x76, 0x7e, 0xa6, 0x0c, 0x98, 0x84, + 0x16, 0xeb, 0x9d, 0x45, 0x24, 0xe0, 0xda, 0x42, 0x8a, 0x58, 0xd9, 0x4b, 0x61, 0xd5, 0x7c, 0xf7, + 0x01, 0x54, 0x53, 0xec, 0xcc, 0x22, 0x5f, 0xbf, 0xaf, 0x54, 0x14, 0xe7, 0x38, 0xf2, 0xd1, 0x7b, + 0x70, 0x57, 0xe8, 0x47, 0x5d, 0x4e, 0x3d, 0x87, 0x87, 0x53, 0xdf, 0x8d, 0x6f, 0x6d, 0x8e, 0x48, + 0x6d, 0x25, 0x09, 0x68, 0x25, 0x22, 0x23, 0x21, 0xa1, 0x8b, 0xdd, 0x13, 0x3a, 0x47, 0xaf, 0x41, + 0x41, 0x3e, 0x4b, 0xca, 0xdb, 0x72, 0x75, 0x6f, 0x73, 0xb1, 0x59, 0xe1, 0xd5, 0x1e, 0x56, 0xa3, + 0x36, 0x86, 0xed, 0x55, 0x7b, 0x3e, 0xa5, 0xe4, 0x92, 0xbe, 0xfc, 0x21, 0x7d, 0x06, 0x0f, 0x53, + 0x39, 0x55, 0x95, 0xad, 0xe5, 0x2e, 0xff, 0x0a, 0xf4, 0xac, 0x4d, 0x72, 0x4b, 0x36, 0xb1, 0xff, + 0x6a, 0x40, 0xf5, 0x19, 0xb9, 0x98, 0xc5, 0x2d, 0x79, 0x03, 0x4c, 0xe6, 0x9f, 0xe9, 0xa7, 0x55, + 0xf1, 0x29, 0xb2, 0x23, 0xf7, 0x27, 0x94, 0x71, 0x32, 0x99, 0xca, 0xf9, 0x79, 0xbc, 0x60, 0x88, + 0x45, 0xa5, 0x25, 0xe5, 0x21, 0xd6, 0xb0, 0x22, 0xe4, 0xc3, 0x11, 0x99, 0x8f, 0x43, 0x12, 0x7b, + 0x79, 0x4c, 0xaa, 0x11, 0xcf, 0xf3, 0x83, 0x33, 0x7d, 0x80, 0x31, 0x29, 0x72, 0xfc, 0x39, 0x61, + 0xe7, 0xf2, 0xd8, 0x6a, 0x58, 0x7e, 0x23, 0x1b, 0x6a, 0xfc, 0xdc, 0x8f, 0xbc, 0x43, 0x12, 0x09, + 0x3b, 0xe8, 0x57, 0x8c, 0x0c, 0xcf, 0xfe, 0x15, 0xec, 0xa4, 0x36, 0x10, 0x9b, 0x25, 0xee, 0xb5, + 0x2d, 0x28, 0x5d, 0xd2, 0x48, 0xd4, 0x50, 0xb9, 0xa7, 0x3a, 0x8e, 0x49, 0xb1, 0xde, 0x69, 0x14, + 0x4e, 0xf4, 0x96, 0xe4, 0xb7, 0xe8, 0xb3, 0x79, 0xa8, 0x1f, 0x53, 0x73, 0x3c, 0x14, 0xeb, 0xbb, + 0x61, 0xc0, 0x69, 0xc0, 0xa5, 0x33, 0xc8, 0x9b, 0x7f, 0x0d, 0x67, 0x78, 0xf6, 0x1f, 0x0d, 0x40, + 0xab, 0x0a, 0x3c, 0x67, 0xe1, 0x0f, 0xa1, 0x9c, 0xdc, 0x25, 0x54, 0xdc, 0xa4, 0xba, 0x89, 0xab, + 0xb7, 0x82, 0x93, 0x59, 0xe8, 0x4d, 0x81, 0xa0, 0xbb, 0x24, 0x95, 0xf3, 0x6e, 0xad, 0x45, 0xc0, + 0x89, 0x98, 0xfd, 0x37, 0x03, 0x1e, 0xac, 0x62, 0xf7, 0x02, 0x8f, 0xfe, 0xe2, 0x05, 0x6c, 0xf5, + 0xed, 0x55, 0xbe, 0x0d, 0xc5, 0xf0, 0xf4, 0x94, 0x51, 0xae, 0xad, 0xab, 0x29, 0x71, 0x0a, 0xcc, + 0xff, 0x25, 0xd5, 0x2f, 0xef, 0xf2, 0x7b, 0xd9, 0x47, 0xf2, 0x89, 0x8f, 0xd8, 0x5f, 0x19, 0xb0, + 0x7d, 0xc5, 0x2e, 0xd0, 0x13, 0x28, 0xeb, 0x9b, 0x6f, 0xdc, 0xa4, 0x3d, 0x7e, 0x9e, 0x8e, 0x72, + 0x52, 0x4b, 0x13, 0xba, 0x5f, 0x4b, 0x00, 0x76, 0x4e, 0xa1, 0x9e, 0x19, 0x5a, 0xd3, 0xfe, 0x7c, + 0x90, 0x6d, 0x7f, 0x5e, 0xbf, 0x76, 0xb1, 0xc4, 0x2a, 0xa9, 0x76, 0xe8, 0x19, 0xdc, 0x5f, 0xf4, + 0x7e, 0xb3, 0x93, 0xb1, 0xef, 0x1e, 0xf1, 0x30, 0xa2, 0x41, 0xe8, 0x51, 0x26, 0x7b, 0xe3, 0x4c, + 0x6f, 0x62, 0x2c, 0xf7, 0x26, 0xa9, 0x38, 0xcb, 0x65, 0xe2, 0xcc, 0xfe, 0xbd, 0x91, 0xaa, 0x13, + 0x0b, 0xcc, 0x97, 0x2f, 0xb8, 0x6f, 0x01, 0xb0, 0x04, 0x46, 0x7b, 0xdd, 0x8d, 0x54, 0x0a, 0x8c, + 0xc7, 0x70, 0x4a, 0x4c, 0xbf, 0x9a, 0xc9, 0xde, 0x49, 0x9f, 0x70, 0x49, 0xb7, 0x4e, 0xf6, 0x3f, + 0x0d, 0xa8, 0x24, 0x93, 0x5e, 0xe4, 0xaf, 0x9d, 0x87, 0x50, 0x4b, 0x90, 0x63, 0x1d, 0x2b, 0xb8, + 0x9a, 0xf0, 0x52, 0x6d, 0xa2, 0x99, 0x6a, 0x13, 0x53, 0x6d, 0x5f, 0x3e, 0xdb, 0xf6, 0xdd, 0x84, + 0xc2, 0xe9, 0x98, 0x52, 0xfd, 0xb2, 0x8a, 0x15, 0x91, 0x0e, 0x82, 0x62, 0x36, 0x08, 0x2c, 0x28, + 0x45, 0x74, 0x12, 0x5e, 0x52, 0x95, 0x87, 0xca, 0x38, 0x26, 0x45, 0x8e, 0x55, 0xb7, 0x14, 0xcf, + 0x21, 0x5c, 0x96, 0x07, 0x13, 0x57, 0x34, 0xa7, 0xcd, 0xf7, 0xeb, 0x5f, 0x54, 0x5b, 0x8f, 0xdf, + 0x8d, 0x4d, 0x75, 0x52, 0x94, 0x5f, 0x6f, 0xfd, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xb1, 0x99, 0x13, + 0x85, 0x24, 0x1b, 0x00, 0x00, } diff --git a/protocol/protobuf/communities.proto b/protocol/protobuf/communities.proto index 97d529ed2..ad3717bc9 100644 --- a/protocol/protobuf/communities.proto +++ b/protocol/protobuf/communities.proto @@ -57,10 +57,11 @@ message TokenCriteria { CommunityTokenType type = 2; string symbol = 3; string name = 4; - string amount = 5; + string amount = 5 [deprecated = true]; repeated uint64 token_ids = 6; string ens_pattern = 7; uint64 decimals = 8; + string amountInWei = 9; } message CommunityTokenPermission { diff --git a/protocol/protobuf/community_shard_key.pb.go b/protocol/protobuf/community_shard_key.pb.go index 1b2e6cbd7..60c1c3500 100644 --- a/protocol/protobuf/community_shard_key.pb.go +++ b/protocol/protobuf/community_shard_key.pb.go @@ -1,177 +1,107 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: community_shard_key.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type CommunityShardKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CommunityId []byte `protobuf:"bytes,1,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` - PrivateKey []byte `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` - Clock uint64 `protobuf:"varint,3,opt,name=clock,proto3" json:"clock,omitempty"` - Shard *Shard `protobuf:"bytes,4,opt,name=shard,proto3" json:"shard,omitempty"` + CommunityId []byte `protobuf:"bytes,1,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + PrivateKey []byte `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` + Clock uint64 `protobuf:"varint,3,opt,name=clock,proto3" json:"clock,omitempty"` + Shard *Shard `protobuf:"bytes,4,opt,name=shard,proto3" json:"shard,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityShardKey) Reset() { - *x = CommunityShardKey{} - if protoimpl.UnsafeEnabled { - mi := &file_community_shard_key_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityShardKey) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityShardKey) ProtoMessage() {} - -func (x *CommunityShardKey) ProtoReflect() protoreflect.Message { - mi := &file_community_shard_key_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityShardKey.ProtoReflect.Descriptor instead. +func (m *CommunityShardKey) Reset() { *m = CommunityShardKey{} } +func (m *CommunityShardKey) String() string { return proto.CompactTextString(m) } +func (*CommunityShardKey) ProtoMessage() {} func (*CommunityShardKey) Descriptor() ([]byte, []int) { - return file_community_shard_key_proto_rawDescGZIP(), []int{0} + return fileDescriptor_03da8310cde9b7b2, []int{0} } -func (x *CommunityShardKey) GetCommunityId() []byte { - if x != nil { - return x.CommunityId +func (m *CommunityShardKey) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityShardKey.Unmarshal(m, b) +} +func (m *CommunityShardKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityShardKey.Marshal(b, m, deterministic) +} +func (m *CommunityShardKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityShardKey.Merge(m, src) +} +func (m *CommunityShardKey) XXX_Size() int { + return xxx_messageInfo_CommunityShardKey.Size(m) +} +func (m *CommunityShardKey) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityShardKey.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityShardKey proto.InternalMessageInfo + +func (m *CommunityShardKey) GetCommunityId() []byte { + if m != nil { + return m.CommunityId } return nil } -func (x *CommunityShardKey) GetPrivateKey() []byte { - if x != nil { - return x.PrivateKey +func (m *CommunityShardKey) GetPrivateKey() []byte { + if m != nil { + return m.PrivateKey } return nil } -func (x *CommunityShardKey) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *CommunityShardKey) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *CommunityShardKey) GetShard() *Shard { - if x != nil { - return x.Shard +func (m *CommunityShardKey) GetShard() *Shard { + if m != nil { + return m.Shard } return nil } -var File_community_shard_key_proto protoreflect.FileDescriptor - -var file_community_shard_key_proto_rawDesc = []byte{ - 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, - 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x0b, 0x73, 0x68, 0x61, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0x94, 0x01, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x64, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, - 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, - 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x70, - 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, - 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, - 0x63, 0x6b, 0x12, 0x25, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x68, 0x61, - 0x72, 0x64, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterType((*CommunityShardKey)(nil), "protobuf.CommunityShardKey") } -var ( - file_community_shard_key_proto_rawDescOnce sync.Once - file_community_shard_key_proto_rawDescData = file_community_shard_key_proto_rawDesc -) - -func file_community_shard_key_proto_rawDescGZIP() []byte { - file_community_shard_key_proto_rawDescOnce.Do(func() { - file_community_shard_key_proto_rawDescData = protoimpl.X.CompressGZIP(file_community_shard_key_proto_rawDescData) - }) - return file_community_shard_key_proto_rawDescData +func init() { + proto.RegisterFile("community_shard_key.proto", fileDescriptor_03da8310cde9b7b2) } -var file_community_shard_key_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_community_shard_key_proto_goTypes = []interface{}{ - (*CommunityShardKey)(nil), // 0: protobuf.CommunityShardKey - (*Shard)(nil), // 1: protobuf.Shard -} -var file_community_shard_key_proto_depIdxs = []int32{ - 1, // 0: protobuf.CommunityShardKey.shard:type_name -> protobuf.Shard - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_community_shard_key_proto_init() } -func file_community_shard_key_proto_init() { - if File_community_shard_key_proto != nil { - return - } - file_shard_proto_init() - if !protoimpl.UnsafeEnabled { - file_community_shard_key_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityShardKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_community_shard_key_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_community_shard_key_proto_goTypes, - DependencyIndexes: file_community_shard_key_proto_depIdxs, - MessageInfos: file_community_shard_key_proto_msgTypes, - }.Build() - File_community_shard_key_proto = out.File - file_community_shard_key_proto_rawDesc = nil - file_community_shard_key_proto_goTypes = nil - file_community_shard_key_proto_depIdxs = nil +var fileDescriptor_03da8310cde9b7b2 = []byte{ + // 173 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4c, 0xce, 0xcf, 0xcd, + 0x2d, 0xcd, 0xcb, 0x2c, 0xa9, 0x8c, 0x2f, 0xce, 0x48, 0x2c, 0x4a, 0x89, 0xcf, 0x4e, 0xad, 0xd4, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x00, 0x53, 0x49, 0xa5, 0x69, 0x52, 0xdc, 0x60, 0x29, + 0x88, 0xb0, 0xd2, 0x14, 0x46, 0x2e, 0x41, 0x67, 0x98, 0xa6, 0x60, 0x90, 0x84, 0x77, 0x6a, 0xa5, + 0x90, 0x22, 0x17, 0x0f, 0xc2, 0xa4, 0xcc, 0x14, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x9e, 0x20, 0x6e, + 0xb8, 0x98, 0x67, 0x8a, 0x90, 0x3c, 0x17, 0x77, 0x41, 0x51, 0x66, 0x59, 0x62, 0x49, 0x2a, 0xc8, + 0x12, 0x09, 0x26, 0xb0, 0x0a, 0x2e, 0xa8, 0x10, 0xc8, 0x0c, 0x11, 0x2e, 0xd6, 0xe4, 0x9c, 0xfc, + 0xe4, 0x6c, 0x09, 0x66, 0x05, 0x46, 0x0d, 0x96, 0x20, 0x08, 0x47, 0x48, 0x95, 0x8b, 0x15, 0x6c, + 0xbd, 0x04, 0x8b, 0x02, 0xa3, 0x06, 0xb7, 0x11, 0xbf, 0x1e, 0xcc, 0x59, 0x7a, 0x60, 0xcb, 0x83, + 0x20, 0xb2, 0x4e, 0xbc, 0x51, 0xdc, 0x7a, 0xfa, 0xd6, 0x30, 0xb9, 0x24, 0x36, 0x30, 0xcb, 0x18, + 0x10, 0x00, 0x00, 0xff, 0xff, 0x7e, 0xda, 0x17, 0x6d, 0xe0, 0x00, 0x00, 0x00, } diff --git a/protocol/protobuf/community_update.pb.go b/protocol/protobuf/community_update.pb.go index 385e3e964..a53e842b9 100644 --- a/protocol/protobuf/community_update.pb.go +++ b/protocol/protobuf/community_update.pb.go @@ -1,24 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: community_update.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type CommunityEvent_EventType int32 @@ -43,82 +43,57 @@ const ( CommunityEvent_COMMUNITY_TOKEN_ADD CommunityEvent_EventType = 17 ) -// Enum value maps for CommunityEvent_EventType. -var ( - CommunityEvent_EventType_name = map[int32]string{ - 0: "UNKNOWN", - 1: "COMMUNITY_EDIT", - 2: "COMMUNITY_MEMBER_TOKEN_PERMISSION_CHANGE", - 3: "COMMUNITY_MEMBER_TOKEN_PERMISSION_DELETE", - 4: "COMMUNITY_CATEGORY_CREATE", - 5: "COMMUNITY_CATEGORY_DELETE", - 6: "COMMUNITY_CATEGORY_EDIT", - 7: "COMMUNITY_CHANNEL_CREATE", - 8: "COMMUNITY_CHANNEL_DELETE", - 9: "COMMUNITY_CHANNEL_EDIT", - 10: "COMMUNITY_CATEGORY_REORDER", - 11: "COMMUNITY_CHANNEL_REORDER", - 12: "COMMUNITY_REQUEST_TO_JOIN_ACCEPT", - 13: "COMMUNITY_REQUEST_TO_JOIN_REJECT", - 14: "COMMUNITY_MEMBER_KICK", - 15: "COMMUNITY_MEMBER_BAN", - 16: "COMMUNITY_MEMBER_UNBAN", - 17: "COMMUNITY_TOKEN_ADD", - } - CommunityEvent_EventType_value = map[string]int32{ - "UNKNOWN": 0, - "COMMUNITY_EDIT": 1, - "COMMUNITY_MEMBER_TOKEN_PERMISSION_CHANGE": 2, - "COMMUNITY_MEMBER_TOKEN_PERMISSION_DELETE": 3, - "COMMUNITY_CATEGORY_CREATE": 4, - "COMMUNITY_CATEGORY_DELETE": 5, - "COMMUNITY_CATEGORY_EDIT": 6, - "COMMUNITY_CHANNEL_CREATE": 7, - "COMMUNITY_CHANNEL_DELETE": 8, - "COMMUNITY_CHANNEL_EDIT": 9, - "COMMUNITY_CATEGORY_REORDER": 10, - "COMMUNITY_CHANNEL_REORDER": 11, - "COMMUNITY_REQUEST_TO_JOIN_ACCEPT": 12, - "COMMUNITY_REQUEST_TO_JOIN_REJECT": 13, - "COMMUNITY_MEMBER_KICK": 14, - "COMMUNITY_MEMBER_BAN": 15, - "COMMUNITY_MEMBER_UNBAN": 16, - "COMMUNITY_TOKEN_ADD": 17, - } -) +var CommunityEvent_EventType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "COMMUNITY_EDIT", + 2: "COMMUNITY_MEMBER_TOKEN_PERMISSION_CHANGE", + 3: "COMMUNITY_MEMBER_TOKEN_PERMISSION_DELETE", + 4: "COMMUNITY_CATEGORY_CREATE", + 5: "COMMUNITY_CATEGORY_DELETE", + 6: "COMMUNITY_CATEGORY_EDIT", + 7: "COMMUNITY_CHANNEL_CREATE", + 8: "COMMUNITY_CHANNEL_DELETE", + 9: "COMMUNITY_CHANNEL_EDIT", + 10: "COMMUNITY_CATEGORY_REORDER", + 11: "COMMUNITY_CHANNEL_REORDER", + 12: "COMMUNITY_REQUEST_TO_JOIN_ACCEPT", + 13: "COMMUNITY_REQUEST_TO_JOIN_REJECT", + 14: "COMMUNITY_MEMBER_KICK", + 15: "COMMUNITY_MEMBER_BAN", + 16: "COMMUNITY_MEMBER_UNBAN", + 17: "COMMUNITY_TOKEN_ADD", +} -func (x CommunityEvent_EventType) Enum() *CommunityEvent_EventType { - p := new(CommunityEvent_EventType) - *p = x - return p +var CommunityEvent_EventType_value = map[string]int32{ + "UNKNOWN": 0, + "COMMUNITY_EDIT": 1, + "COMMUNITY_MEMBER_TOKEN_PERMISSION_CHANGE": 2, + "COMMUNITY_MEMBER_TOKEN_PERMISSION_DELETE": 3, + "COMMUNITY_CATEGORY_CREATE": 4, + "COMMUNITY_CATEGORY_DELETE": 5, + "COMMUNITY_CATEGORY_EDIT": 6, + "COMMUNITY_CHANNEL_CREATE": 7, + "COMMUNITY_CHANNEL_DELETE": 8, + "COMMUNITY_CHANNEL_EDIT": 9, + "COMMUNITY_CATEGORY_REORDER": 10, + "COMMUNITY_CHANNEL_REORDER": 11, + "COMMUNITY_REQUEST_TO_JOIN_ACCEPT": 12, + "COMMUNITY_REQUEST_TO_JOIN_REJECT": 13, + "COMMUNITY_MEMBER_KICK": 14, + "COMMUNITY_MEMBER_BAN": 15, + "COMMUNITY_MEMBER_UNBAN": 16, + "COMMUNITY_TOKEN_ADD": 17, } func (x CommunityEvent_EventType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(CommunityEvent_EventType_name, int32(x)) } -func (CommunityEvent_EventType) Descriptor() protoreflect.EnumDescriptor { - return file_community_update_proto_enumTypes[0].Descriptor() -} - -func (CommunityEvent_EventType) Type() protoreflect.EnumType { - return &file_community_update_proto_enumTypes[0] -} - -func (x CommunityEvent_EventType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use CommunityEvent_EventType.Descriptor instead. func (CommunityEvent_EventType) EnumDescriptor() ([]byte, []int) { - return file_community_update_proto_rawDescGZIP(), []int{0, 0} + return fileDescriptor_52ed23dfc73918ab, []int{0, 0} } type CommunityEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - CommunityEventClock uint64 `protobuf:"varint,1,opt,name=community_event_clock,json=communityEventClock,proto3" json:"community_event_clock,omitempty"` Type CommunityEvent_EventType `protobuf:"varint,2,opt,name=type,proto3,enum=protobuf.CommunityEvent_EventType" json:"type,omitempty"` CommunityConfig *CommunityConfig `protobuf:"bytes,3,opt,name=community_config,json=communityConfig,proto3" json:"community_config,omitempty"` @@ -130,399 +105,363 @@ type CommunityEvent struct { RejectedRequestsToJoin map[string]*CommunityRequestToJoin `protobuf:"bytes,9,rep,name=rejectedRequestsToJoin,proto3" json:"rejectedRequestsToJoin,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` AcceptedRequestsToJoin map[string]*CommunityRequestToJoin `protobuf:"bytes,10,rep,name=acceptedRequestsToJoin,proto3" json:"acceptedRequestsToJoin,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` TokenMetadata *CommunityTokenMetadata `protobuf:"bytes,11,opt,name=token_metadata,json=tokenMetadata,proto3" json:"token_metadata,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityEvent) Reset() { - *x = CommunityEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_community_update_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityEvent) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityEvent) ProtoMessage() {} - -func (x *CommunityEvent) ProtoReflect() protoreflect.Message { - mi := &file_community_update_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityEvent.ProtoReflect.Descriptor instead. +func (m *CommunityEvent) Reset() { *m = CommunityEvent{} } +func (m *CommunityEvent) String() string { return proto.CompactTextString(m) } +func (*CommunityEvent) ProtoMessage() {} func (*CommunityEvent) Descriptor() ([]byte, []int) { - return file_community_update_proto_rawDescGZIP(), []int{0} + return fileDescriptor_52ed23dfc73918ab, []int{0} } -func (x *CommunityEvent) GetCommunityEventClock() uint64 { - if x != nil { - return x.CommunityEventClock +func (m *CommunityEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityEvent.Unmarshal(m, b) +} +func (m *CommunityEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityEvent.Marshal(b, m, deterministic) +} +func (m *CommunityEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityEvent.Merge(m, src) +} +func (m *CommunityEvent) XXX_Size() int { + return xxx_messageInfo_CommunityEvent.Size(m) +} +func (m *CommunityEvent) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityEvent.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityEvent proto.InternalMessageInfo + +func (m *CommunityEvent) GetCommunityEventClock() uint64 { + if m != nil { + return m.CommunityEventClock } return 0 } -func (x *CommunityEvent) GetType() CommunityEvent_EventType { - if x != nil { - return x.Type +func (m *CommunityEvent) GetType() CommunityEvent_EventType { + if m != nil { + return m.Type } return CommunityEvent_UNKNOWN } -func (x *CommunityEvent) GetCommunityConfig() *CommunityConfig { - if x != nil { - return x.CommunityConfig +func (m *CommunityEvent) GetCommunityConfig() *CommunityConfig { + if m != nil { + return m.CommunityConfig } return nil } -func (x *CommunityEvent) GetTokenPermission() *CommunityTokenPermission { - if x != nil { - return x.TokenPermission +func (m *CommunityEvent) GetTokenPermission() *CommunityTokenPermission { + if m != nil { + return m.TokenPermission } return nil } -func (x *CommunityEvent) GetCategoryData() *CategoryData { - if x != nil { - return x.CategoryData +func (m *CommunityEvent) GetCategoryData() *CategoryData { + if m != nil { + return m.CategoryData } return nil } -func (x *CommunityEvent) GetChannelData() *ChannelData { - if x != nil { - return x.ChannelData +func (m *CommunityEvent) GetChannelData() *ChannelData { + if m != nil { + return m.ChannelData } return nil } -func (x *CommunityEvent) GetMemberToAction() string { - if x != nil { - return x.MemberToAction +func (m *CommunityEvent) GetMemberToAction() string { + if m != nil { + return m.MemberToAction } return "" } -func (x *CommunityEvent) GetMembersAdded() map[string]*CommunityMember { - if x != nil { - return x.MembersAdded +func (m *CommunityEvent) GetMembersAdded() map[string]*CommunityMember { + if m != nil { + return m.MembersAdded } return nil } -func (x *CommunityEvent) GetRejectedRequestsToJoin() map[string]*CommunityRequestToJoin { - if x != nil { - return x.RejectedRequestsToJoin +func (m *CommunityEvent) GetRejectedRequestsToJoin() map[string]*CommunityRequestToJoin { + if m != nil { + return m.RejectedRequestsToJoin } return nil } -func (x *CommunityEvent) GetAcceptedRequestsToJoin() map[string]*CommunityRequestToJoin { - if x != nil { - return x.AcceptedRequestsToJoin +func (m *CommunityEvent) GetAcceptedRequestsToJoin() map[string]*CommunityRequestToJoin { + if m != nil { + return m.AcceptedRequestsToJoin } return nil } -func (x *CommunityEvent) GetTokenMetadata() *CommunityTokenMetadata { - if x != nil { - return x.TokenMetadata +func (m *CommunityEvent) GetTokenMetadata() *CommunityTokenMetadata { + if m != nil { + return m.TokenMetadata } return nil } type CommunityConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Identity *ChatIdentity `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - Permissions *CommunityPermissions `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"` - AdminSettings *CommunityAdminSettings `protobuf:"bytes,3,opt,name=admin_settings,json=adminSettings,proto3" json:"admin_settings,omitempty"` - IntroMessage string `protobuf:"bytes,4,opt,name=intro_message,json=introMessage,proto3" json:"intro_message,omitempty"` - OutroMessage string `protobuf:"bytes,5,opt,name=outro_message,json=outroMessage,proto3" json:"outro_message,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` + Identity *ChatIdentity `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` + Permissions *CommunityPermissions `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"` + AdminSettings *CommunityAdminSettings `protobuf:"bytes,3,opt,name=admin_settings,json=adminSettings,proto3" json:"admin_settings,omitempty"` + IntroMessage string `protobuf:"bytes,4,opt,name=intro_message,json=introMessage,proto3" json:"intro_message,omitempty"` + OutroMessage string `protobuf:"bytes,5,opt,name=outro_message,json=outroMessage,proto3" json:"outro_message,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityConfig) Reset() { - *x = CommunityConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_community_update_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityConfig) ProtoMessage() {} - -func (x *CommunityConfig) ProtoReflect() protoreflect.Message { - mi := &file_community_update_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityConfig.ProtoReflect.Descriptor instead. +func (m *CommunityConfig) Reset() { *m = CommunityConfig{} } +func (m *CommunityConfig) String() string { return proto.CompactTextString(m) } +func (*CommunityConfig) ProtoMessage() {} func (*CommunityConfig) Descriptor() ([]byte, []int) { - return file_community_update_proto_rawDescGZIP(), []int{1} + return fileDescriptor_52ed23dfc73918ab, []int{1} } -func (x *CommunityConfig) GetIdentity() *ChatIdentity { - if x != nil { - return x.Identity +func (m *CommunityConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityConfig.Unmarshal(m, b) +} +func (m *CommunityConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityConfig.Marshal(b, m, deterministic) +} +func (m *CommunityConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityConfig.Merge(m, src) +} +func (m *CommunityConfig) XXX_Size() int { + return xxx_messageInfo_CommunityConfig.Size(m) +} +func (m *CommunityConfig) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityConfig proto.InternalMessageInfo + +func (m *CommunityConfig) GetIdentity() *ChatIdentity { + if m != nil { + return m.Identity } return nil } -func (x *CommunityConfig) GetPermissions() *CommunityPermissions { - if x != nil { - return x.Permissions +func (m *CommunityConfig) GetPermissions() *CommunityPermissions { + if m != nil { + return m.Permissions } return nil } -func (x *CommunityConfig) GetAdminSettings() *CommunityAdminSettings { - if x != nil { - return x.AdminSettings +func (m *CommunityConfig) GetAdminSettings() *CommunityAdminSettings { + if m != nil { + return m.AdminSettings } return nil } -func (x *CommunityConfig) GetIntroMessage() string { - if x != nil { - return x.IntroMessage +func (m *CommunityConfig) GetIntroMessage() string { + if m != nil { + return m.IntroMessage } return "" } -func (x *CommunityConfig) GetOutroMessage() string { - if x != nil { - return x.OutroMessage +func (m *CommunityConfig) GetOutroMessage() string { + if m != nil { + return m.OutroMessage } return "" } -func (x *CommunityConfig) GetTags() []string { - if x != nil { - return x.Tags +func (m *CommunityConfig) GetTags() []string { + if m != nil { + return m.Tags } return nil } type CategoryData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CategoryId string `protobuf:"bytes,1,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - ChannelsIds []string `protobuf:"bytes,3,rep,name=channels_ids,json=channelsIds,proto3" json:"channels_ids,omitempty"` - Position int32 `protobuf:"varint,4,opt,name=position,proto3" json:"position,omitempty"` + CategoryId string `protobuf:"bytes,1,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + ChannelsIds []string `protobuf:"bytes,3,rep,name=channels_ids,json=channelsIds,proto3" json:"channels_ids,omitempty"` + Position int32 `protobuf:"varint,4,opt,name=position,proto3" json:"position,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CategoryData) Reset() { - *x = CategoryData{} - if protoimpl.UnsafeEnabled { - mi := &file_community_update_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CategoryData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CategoryData) ProtoMessage() {} - -func (x *CategoryData) ProtoReflect() protoreflect.Message { - mi := &file_community_update_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CategoryData.ProtoReflect.Descriptor instead. +func (m *CategoryData) Reset() { *m = CategoryData{} } +func (m *CategoryData) String() string { return proto.CompactTextString(m) } +func (*CategoryData) ProtoMessage() {} func (*CategoryData) Descriptor() ([]byte, []int) { - return file_community_update_proto_rawDescGZIP(), []int{2} + return fileDescriptor_52ed23dfc73918ab, []int{2} } -func (x *CategoryData) GetCategoryId() string { - if x != nil { - return x.CategoryId +func (m *CategoryData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CategoryData.Unmarshal(m, b) +} +func (m *CategoryData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CategoryData.Marshal(b, m, deterministic) +} +func (m *CategoryData) XXX_Merge(src proto.Message) { + xxx_messageInfo_CategoryData.Merge(m, src) +} +func (m *CategoryData) XXX_Size() int { + return xxx_messageInfo_CategoryData.Size(m) +} +func (m *CategoryData) XXX_DiscardUnknown() { + xxx_messageInfo_CategoryData.DiscardUnknown(m) +} + +var xxx_messageInfo_CategoryData proto.InternalMessageInfo + +func (m *CategoryData) GetCategoryId() string { + if m != nil { + return m.CategoryId } return "" } -func (x *CategoryData) GetName() string { - if x != nil { - return x.Name +func (m *CategoryData) GetName() string { + if m != nil { + return m.Name } return "" } -func (x *CategoryData) GetChannelsIds() []string { - if x != nil { - return x.ChannelsIds +func (m *CategoryData) GetChannelsIds() []string { + if m != nil { + return m.ChannelsIds } return nil } -func (x *CategoryData) GetPosition() int32 { - if x != nil { - return x.Position +func (m *CategoryData) GetPosition() int32 { + if m != nil { + return m.Position } return 0 } type ChannelData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CategoryId string `protobuf:"bytes,1,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` - ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` - Position int32 `protobuf:"varint,3,opt,name=position,proto3" json:"position,omitempty"` - Channel *CommunityChat `protobuf:"bytes,4,opt,name=channel,proto3" json:"channel,omitempty"` + CategoryId string `protobuf:"bytes,1,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` + ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + Position int32 `protobuf:"varint,3,opt,name=position,proto3" json:"position,omitempty"` + Channel *CommunityChat `protobuf:"bytes,4,opt,name=channel,proto3" json:"channel,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ChannelData) Reset() { - *x = ChannelData{} - if protoimpl.UnsafeEnabled { - mi := &file_community_update_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ChannelData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ChannelData) ProtoMessage() {} - -func (x *ChannelData) ProtoReflect() protoreflect.Message { - mi := &file_community_update_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ChannelData.ProtoReflect.Descriptor instead. +func (m *ChannelData) Reset() { *m = ChannelData{} } +func (m *ChannelData) String() string { return proto.CompactTextString(m) } +func (*ChannelData) ProtoMessage() {} func (*ChannelData) Descriptor() ([]byte, []int) { - return file_community_update_proto_rawDescGZIP(), []int{3} + return fileDescriptor_52ed23dfc73918ab, []int{3} } -func (x *ChannelData) GetCategoryId() string { - if x != nil { - return x.CategoryId +func (m *ChannelData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChannelData.Unmarshal(m, b) +} +func (m *ChannelData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChannelData.Marshal(b, m, deterministic) +} +func (m *ChannelData) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChannelData.Merge(m, src) +} +func (m *ChannelData) XXX_Size() int { + return xxx_messageInfo_ChannelData.Size(m) +} +func (m *ChannelData) XXX_DiscardUnknown() { + xxx_messageInfo_ChannelData.DiscardUnknown(m) +} + +var xxx_messageInfo_ChannelData proto.InternalMessageInfo + +func (m *ChannelData) GetCategoryId() string { + if m != nil { + return m.CategoryId } return "" } -func (x *ChannelData) GetChannelId() string { - if x != nil { - return x.ChannelId +func (m *ChannelData) GetChannelId() string { + if m != nil { + return m.ChannelId } return "" } -func (x *ChannelData) GetPosition() int32 { - if x != nil { - return x.Position +func (m *ChannelData) GetPosition() int32 { + if m != nil { + return m.Position } return 0 } -func (x *ChannelData) GetChannel() *CommunityChat { - if x != nil { - return x.Channel +func (m *ChannelData) GetChannel() *CommunityChat { + if m != nil { + return m.Channel } return nil } type SignedCommunityEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Signature of the payload field Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` // Marshaled CommunityEvent - Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` + Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SignedCommunityEvent) Reset() { - *x = SignedCommunityEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_community_update_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SignedCommunityEvent) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SignedCommunityEvent) ProtoMessage() {} - -func (x *SignedCommunityEvent) ProtoReflect() protoreflect.Message { - mi := &file_community_update_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SignedCommunityEvent.ProtoReflect.Descriptor instead. +func (m *SignedCommunityEvent) Reset() { *m = SignedCommunityEvent{} } +func (m *SignedCommunityEvent) String() string { return proto.CompactTextString(m) } +func (*SignedCommunityEvent) ProtoMessage() {} func (*SignedCommunityEvent) Descriptor() ([]byte, []int) { - return file_community_update_proto_rawDescGZIP(), []int{4} + return fileDescriptor_52ed23dfc73918ab, []int{4} } -func (x *SignedCommunityEvent) GetSignature() []byte { - if x != nil { - return x.Signature +func (m *SignedCommunityEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SignedCommunityEvent.Unmarshal(m, b) +} +func (m *SignedCommunityEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SignedCommunityEvent.Marshal(b, m, deterministic) +} +func (m *SignedCommunityEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignedCommunityEvent.Merge(m, src) +} +func (m *SignedCommunityEvent) XXX_Size() int { + return xxx_messageInfo_SignedCommunityEvent.Size(m) +} +func (m *SignedCommunityEvent) XXX_DiscardUnknown() { + xxx_messageInfo_SignedCommunityEvent.DiscardUnknown(m) +} + +var xxx_messageInfo_SignedCommunityEvent proto.InternalMessageInfo + +func (m *SignedCommunityEvent) GetSignature() []byte { + if m != nil { + return m.Signature } return nil } -func (x *SignedCommunityEvent) GetPayload() []byte { - if x != nil { - return x.Payload +func (m *SignedCommunityEvent) GetPayload() []byte { + if m != nil { + return m.Payload } return nil } @@ -530,480 +469,199 @@ func (x *SignedCommunityEvent) GetPayload() []byte { // CommunityEventsMessage is a message used to propagate information // about community changes. type CommunityEventsMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - CommunityId []byte `protobuf:"bytes,1,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` // Events base CommunityDescription with owner signature on top of which events were generated EventsBaseCommunityDescription []byte `protobuf:"bytes,2,opt,name=events_base_community_description,json=eventsBaseCommunityDescription,proto3" json:"events_base_community_description,omitempty"` // A list of admins events for the channel in bytes // Deprecated: use signed_events instead. - // - // Deprecated: Marked as deprecated in community_update.proto. - Events [][]byte `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"` + Events [][]byte `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"` // Deprecated: Do not use. // A list of signed community events - SignedEvents []*SignedCommunityEvent `protobuf:"bytes,4,rep,name=signed_events,json=signedEvents,proto3" json:"signed_events,omitempty"` + SignedEvents []*SignedCommunityEvent `protobuf:"bytes,4,rep,name=signed_events,json=signedEvents,proto3" json:"signed_events,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityEventsMessage) Reset() { - *x = CommunityEventsMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_community_update_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityEventsMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityEventsMessage) ProtoMessage() {} - -func (x *CommunityEventsMessage) ProtoReflect() protoreflect.Message { - mi := &file_community_update_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityEventsMessage.ProtoReflect.Descriptor instead. +func (m *CommunityEventsMessage) Reset() { *m = CommunityEventsMessage{} } +func (m *CommunityEventsMessage) String() string { return proto.CompactTextString(m) } +func (*CommunityEventsMessage) ProtoMessage() {} func (*CommunityEventsMessage) Descriptor() ([]byte, []int) { - return file_community_update_proto_rawDescGZIP(), []int{5} + return fileDescriptor_52ed23dfc73918ab, []int{5} } -func (x *CommunityEventsMessage) GetCommunityId() []byte { - if x != nil { - return x.CommunityId +func (m *CommunityEventsMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityEventsMessage.Unmarshal(m, b) +} +func (m *CommunityEventsMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityEventsMessage.Marshal(b, m, deterministic) +} +func (m *CommunityEventsMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityEventsMessage.Merge(m, src) +} +func (m *CommunityEventsMessage) XXX_Size() int { + return xxx_messageInfo_CommunityEventsMessage.Size(m) +} +func (m *CommunityEventsMessage) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityEventsMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityEventsMessage proto.InternalMessageInfo + +func (m *CommunityEventsMessage) GetCommunityId() []byte { + if m != nil { + return m.CommunityId } return nil } -func (x *CommunityEventsMessage) GetEventsBaseCommunityDescription() []byte { - if x != nil { - return x.EventsBaseCommunityDescription +func (m *CommunityEventsMessage) GetEventsBaseCommunityDescription() []byte { + if m != nil { + return m.EventsBaseCommunityDescription } return nil } -// Deprecated: Marked as deprecated in community_update.proto. -func (x *CommunityEventsMessage) GetEvents() [][]byte { - if x != nil { - return x.Events +// Deprecated: Do not use. +func (m *CommunityEventsMessage) GetEvents() [][]byte { + if m != nil { + return m.Events } return nil } -func (x *CommunityEventsMessage) GetSignedEvents() []*SignedCommunityEvent { - if x != nil { - return x.SignedEvents +func (m *CommunityEventsMessage) GetSignedEvents() []*SignedCommunityEvent { + if m != nil { + return m.SignedEvents } return nil } type CommunityEventsMessageRejected struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Msg *CommunityEventsMessage `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` + Msg *CommunityEventsMessage `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityEventsMessageRejected) Reset() { - *x = CommunityEventsMessageRejected{} - if protoimpl.UnsafeEnabled { - mi := &file_community_update_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityEventsMessageRejected) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityEventsMessageRejected) ProtoMessage() {} - -func (x *CommunityEventsMessageRejected) ProtoReflect() protoreflect.Message { - mi := &file_community_update_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityEventsMessageRejected.ProtoReflect.Descriptor instead. +func (m *CommunityEventsMessageRejected) Reset() { *m = CommunityEventsMessageRejected{} } +func (m *CommunityEventsMessageRejected) String() string { return proto.CompactTextString(m) } +func (*CommunityEventsMessageRejected) ProtoMessage() {} func (*CommunityEventsMessageRejected) Descriptor() ([]byte, []int) { - return file_community_update_proto_rawDescGZIP(), []int{6} + return fileDescriptor_52ed23dfc73918ab, []int{6} } -func (x *CommunityEventsMessageRejected) GetMsg() *CommunityEventsMessage { - if x != nil { - return x.Msg +func (m *CommunityEventsMessageRejected) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityEventsMessageRejected.Unmarshal(m, b) +} +func (m *CommunityEventsMessageRejected) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityEventsMessageRejected.Marshal(b, m, deterministic) +} +func (m *CommunityEventsMessageRejected) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityEventsMessageRejected.Merge(m, src) +} +func (m *CommunityEventsMessageRejected) XXX_Size() int { + return xxx_messageInfo_CommunityEventsMessageRejected.Size(m) +} +func (m *CommunityEventsMessageRejected) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityEventsMessageRejected.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityEventsMessageRejected proto.InternalMessageInfo + +func (m *CommunityEventsMessageRejected) GetMsg() *CommunityEventsMessage { + if m != nil { + return m.Msg } return nil } -var File_community_update_proto protoreflect.FileDescriptor - -var file_community_update_proto_rawDesc = []byte{ - 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x1a, 0x13, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, - 0x74, 0x69, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x90, 0x0d, 0x0a, 0x0e, 0x43, - 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, - 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x5f, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x63, 0x6f, - 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6c, 0x6f, 0x63, - 0x6b, 0x12, 0x36, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, - 0x6e, 0x69, 0x74, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x44, 0x0a, 0x10, 0x63, 0x6f, 0x6d, - 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, - 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0f, - 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, - 0x4d, 0x0a, 0x10, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3b, - 0x0a, 0x0d, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0c, 0x63, - 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x12, 0x38, 0x0a, 0x0c, 0x63, - 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x68, 0x61, - 0x6e, 0x6e, 0x65, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, - 0x6c, 0x44, 0x61, 0x74, 0x61, 0x12, 0x28, 0x0a, 0x10, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, - 0x74, 0x6f, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x54, 0x6f, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x4e, 0x0a, 0x0c, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x41, 0x64, 0x64, 0x65, 0x64, 0x18, - 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, - 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x41, 0x64, 0x64, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x0c, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x41, 0x64, 0x64, 0x65, 0x64, 0x12, - 0x6c, 0x0a, 0x16, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x73, 0x54, 0x6f, 0x4a, 0x6f, 0x69, 0x6e, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x34, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, - 0x6e, 0x69, 0x74, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, - 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x54, 0x6f, 0x4a, 0x6f, 0x69, 0x6e, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x16, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x54, 0x6f, 0x4a, 0x6f, 0x69, 0x6e, 0x12, 0x6c, 0x0a, - 0x16, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x73, 0x54, 0x6f, 0x4a, 0x6f, 0x69, 0x6e, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, - 0x74, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x54, 0x6f, 0x4a, 0x6f, 0x69, 0x6e, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x16, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x73, 0x54, 0x6f, 0x4a, 0x6f, 0x69, 0x6e, 0x12, 0x47, 0x0a, 0x0e, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0b, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, - 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0d, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x1a, 0x5a, 0x0a, 0x11, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x41, - 0x64, 0x64, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2f, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x4d, - 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x1a, 0x6b, 0x0a, 0x1b, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x73, 0x54, 0x6f, 0x4a, 0x6f, 0x69, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, - 0x75, 0x6e, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x6f, 0x4a, 0x6f, - 0x69, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x6b, 0x0a, - 0x1b, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x73, 0x54, 0x6f, 0x4a, 0x6f, 0x69, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x36, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, - 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x6f, 0x4a, 0x6f, 0x69, 0x6e, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb0, 0x04, 0x0a, 0x09, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, - 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, - 0x54, 0x59, 0x5f, 0x45, 0x44, 0x49, 0x54, 0x10, 0x01, 0x12, 0x2c, 0x0a, 0x28, 0x43, 0x4f, 0x4d, - 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x54, 0x4f, - 0x4b, 0x45, 0x4e, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x43, - 0x48, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x02, 0x12, 0x2c, 0x0a, 0x28, 0x43, 0x4f, 0x4d, 0x4d, 0x55, - 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x54, 0x4f, 0x4b, 0x45, - 0x4e, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x45, 0x4c, - 0x45, 0x54, 0x45, 0x10, 0x03, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, - 0x54, 0x59, 0x5f, 0x43, 0x41, 0x54, 0x45, 0x47, 0x4f, 0x52, 0x59, 0x5f, 0x43, 0x52, 0x45, 0x41, - 0x54, 0x45, 0x10, 0x04, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, - 0x59, 0x5f, 0x43, 0x41, 0x54, 0x45, 0x47, 0x4f, 0x52, 0x59, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, - 0x45, 0x10, 0x05, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, - 0x5f, 0x43, 0x41, 0x54, 0x45, 0x47, 0x4f, 0x52, 0x59, 0x5f, 0x45, 0x44, 0x49, 0x54, 0x10, 0x06, - 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x48, - 0x41, 0x4e, 0x4e, 0x45, 0x4c, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x07, 0x12, 0x1c, - 0x0a, 0x18, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x48, 0x41, 0x4e, - 0x4e, 0x45, 0x4c, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x08, 0x12, 0x1a, 0x0a, 0x16, - 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x4e, 0x45, - 0x4c, 0x5f, 0x45, 0x44, 0x49, 0x54, 0x10, 0x09, 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x4f, 0x4d, 0x4d, - 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x41, 0x54, 0x45, 0x47, 0x4f, 0x52, 0x59, 0x5f, 0x52, - 0x45, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x10, 0x0a, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x4f, 0x4d, 0x4d, - 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x4e, 0x45, 0x4c, 0x5f, 0x52, 0x45, - 0x4f, 0x52, 0x44, 0x45, 0x52, 0x10, 0x0b, 0x12, 0x24, 0x0a, 0x20, 0x43, 0x4f, 0x4d, 0x4d, 0x55, - 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x54, 0x4f, 0x5f, - 0x4a, 0x4f, 0x49, 0x4e, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x10, 0x0c, 0x12, 0x24, 0x0a, - 0x20, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, - 0x53, 0x54, 0x5f, 0x54, 0x4f, 0x5f, 0x4a, 0x4f, 0x49, 0x4e, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, - 0x54, 0x10, 0x0d, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, - 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x4b, 0x49, 0x43, 0x4b, 0x10, 0x0e, 0x12, 0x18, - 0x0a, 0x14, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x4d, 0x45, 0x4d, 0x42, - 0x45, 0x52, 0x5f, 0x42, 0x41, 0x4e, 0x10, 0x0f, 0x12, 0x1a, 0x0a, 0x16, 0x43, 0x4f, 0x4d, 0x4d, - 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x42, - 0x41, 0x4e, 0x10, 0x10, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, - 0x59, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x41, 0x44, 0x44, 0x10, 0x11, 0x22, 0xae, 0x02, - 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x32, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, - 0x68, 0x61, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x08, 0x69, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x40, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x50, - 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x47, 0x0a, 0x0e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, - 0x6e, 0x69, 0x74, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, - 0x73, 0x52, 0x0d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, - 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x72, 0x6f, 0x5f, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x75, - 0x74, 0x72, 0x6f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, - 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0x82, - 0x01, 0x0a, 0x0c, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x12, - 0x1f, 0x0a, 0x0b, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, - 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x6e, - 0x6e, 0x65, 0x6c, 0x73, 0x49, 0x64, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x9c, 0x01, 0x0a, 0x0b, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x44, - 0x61, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, - 0x72, 0x79, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, - 0x6c, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x31, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, - 0x75, 0x6e, 0x69, 0x74, 0x79, 0x43, 0x68, 0x61, 0x74, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, - 0x65, 0x6c, 0x22, 0x4e, 0x0a, 0x14, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, - 0x75, 0x6e, 0x69, 0x74, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, - 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, - 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, - 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, - 0x61, 0x64, 0x22, 0xe7, 0x01, 0x0a, 0x16, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, - 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x49, 0x64, - 0x12, 0x49, 0x0a, 0x21, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, - 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x1e, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x73, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, - 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x06, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, - 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x43, 0x0a, 0x0d, 0x73, 0x69, 0x67, 0x6e, 0x65, - 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, - 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x0c, - 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x54, 0x0a, 0x1e, - 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x4d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x32, - 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x03, 0x6d, - 0x73, 0x67, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterEnum("protobuf.CommunityEvent_EventType", CommunityEvent_EventType_name, CommunityEvent_EventType_value) + proto.RegisterType((*CommunityEvent)(nil), "protobuf.CommunityEvent") + proto.RegisterMapType((map[string]*CommunityRequestToJoin)(nil), "protobuf.CommunityEvent.AcceptedRequestsToJoinEntry") + proto.RegisterMapType((map[string]*CommunityMember)(nil), "protobuf.CommunityEvent.MembersAddedEntry") + proto.RegisterMapType((map[string]*CommunityRequestToJoin)(nil), "protobuf.CommunityEvent.RejectedRequestsToJoinEntry") + proto.RegisterType((*CommunityConfig)(nil), "protobuf.CommunityConfig") + proto.RegisterType((*CategoryData)(nil), "protobuf.CategoryData") + proto.RegisterType((*ChannelData)(nil), "protobuf.ChannelData") + proto.RegisterType((*SignedCommunityEvent)(nil), "protobuf.SignedCommunityEvent") + proto.RegisterType((*CommunityEventsMessage)(nil), "protobuf.CommunityEventsMessage") + proto.RegisterType((*CommunityEventsMessageRejected)(nil), "protobuf.CommunityEventsMessageRejected") } -var ( - file_community_update_proto_rawDescOnce sync.Once - file_community_update_proto_rawDescData = file_community_update_proto_rawDesc -) - -func file_community_update_proto_rawDescGZIP() []byte { - file_community_update_proto_rawDescOnce.Do(func() { - file_community_update_proto_rawDescData = protoimpl.X.CompressGZIP(file_community_update_proto_rawDescData) - }) - return file_community_update_proto_rawDescData +func init() { + proto.RegisterFile("community_update.proto", fileDescriptor_52ed23dfc73918ab) } -var file_community_update_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_community_update_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_community_update_proto_goTypes = []interface{}{ - (CommunityEvent_EventType)(0), // 0: protobuf.CommunityEvent.EventType - (*CommunityEvent)(nil), // 1: protobuf.CommunityEvent - (*CommunityConfig)(nil), // 2: protobuf.CommunityConfig - (*CategoryData)(nil), // 3: protobuf.CategoryData - (*ChannelData)(nil), // 4: protobuf.ChannelData - (*SignedCommunityEvent)(nil), // 5: protobuf.SignedCommunityEvent - (*CommunityEventsMessage)(nil), // 6: protobuf.CommunityEventsMessage - (*CommunityEventsMessageRejected)(nil), // 7: protobuf.CommunityEventsMessageRejected - nil, // 8: protobuf.CommunityEvent.MembersAddedEntry - nil, // 9: protobuf.CommunityEvent.RejectedRequestsToJoinEntry - nil, // 10: protobuf.CommunityEvent.AcceptedRequestsToJoinEntry - (*CommunityTokenPermission)(nil), // 11: protobuf.CommunityTokenPermission - (*CommunityTokenMetadata)(nil), // 12: protobuf.CommunityTokenMetadata - (*ChatIdentity)(nil), // 13: protobuf.ChatIdentity - (*CommunityPermissions)(nil), // 14: protobuf.CommunityPermissions - (*CommunityAdminSettings)(nil), // 15: protobuf.CommunityAdminSettings - (*CommunityChat)(nil), // 16: protobuf.CommunityChat - (*CommunityMember)(nil), // 17: protobuf.CommunityMember - (*CommunityRequestToJoin)(nil), // 18: protobuf.CommunityRequestToJoin -} -var file_community_update_proto_depIdxs = []int32{ - 0, // 0: protobuf.CommunityEvent.type:type_name -> protobuf.CommunityEvent.EventType - 2, // 1: protobuf.CommunityEvent.community_config:type_name -> protobuf.CommunityConfig - 11, // 2: protobuf.CommunityEvent.token_permission:type_name -> protobuf.CommunityTokenPermission - 3, // 3: protobuf.CommunityEvent.category_data:type_name -> protobuf.CategoryData - 4, // 4: protobuf.CommunityEvent.channel_data:type_name -> protobuf.ChannelData - 8, // 5: protobuf.CommunityEvent.membersAdded:type_name -> protobuf.CommunityEvent.MembersAddedEntry - 9, // 6: protobuf.CommunityEvent.rejectedRequestsToJoin:type_name -> protobuf.CommunityEvent.RejectedRequestsToJoinEntry - 10, // 7: protobuf.CommunityEvent.acceptedRequestsToJoin:type_name -> protobuf.CommunityEvent.AcceptedRequestsToJoinEntry - 12, // 8: protobuf.CommunityEvent.token_metadata:type_name -> protobuf.CommunityTokenMetadata - 13, // 9: protobuf.CommunityConfig.identity:type_name -> protobuf.ChatIdentity - 14, // 10: protobuf.CommunityConfig.permissions:type_name -> protobuf.CommunityPermissions - 15, // 11: protobuf.CommunityConfig.admin_settings:type_name -> protobuf.CommunityAdminSettings - 16, // 12: protobuf.ChannelData.channel:type_name -> protobuf.CommunityChat - 5, // 13: protobuf.CommunityEventsMessage.signed_events:type_name -> protobuf.SignedCommunityEvent - 6, // 14: protobuf.CommunityEventsMessageRejected.msg:type_name -> protobuf.CommunityEventsMessage - 17, // 15: protobuf.CommunityEvent.MembersAddedEntry.value:type_name -> protobuf.CommunityMember - 18, // 16: protobuf.CommunityEvent.RejectedRequestsToJoinEntry.value:type_name -> protobuf.CommunityRequestToJoin - 18, // 17: protobuf.CommunityEvent.AcceptedRequestsToJoinEntry.value:type_name -> protobuf.CommunityRequestToJoin - 18, // [18:18] is the sub-list for method output_type - 18, // [18:18] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name -} - -func init() { file_community_update_proto_init() } -func file_community_update_proto_init() { - if File_community_update_proto != nil { - return - } - file_chat_identity_proto_init() - file_communities_proto_init() - if !protoimpl.UnsafeEnabled { - file_community_update_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_community_update_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_community_update_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CategoryData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_community_update_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChannelData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_community_update_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignedCommunityEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_community_update_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityEventsMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_community_update_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityEventsMessageRejected); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_community_update_proto_rawDesc, - NumEnums: 1, - NumMessages: 10, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_community_update_proto_goTypes, - DependencyIndexes: file_community_update_proto_depIdxs, - EnumInfos: file_community_update_proto_enumTypes, - MessageInfos: file_community_update_proto_msgTypes, - }.Build() - File_community_update_proto = out.File - file_community_update_proto_rawDesc = nil - file_community_update_proto_goTypes = nil - file_community_update_proto_depIdxs = nil +var fileDescriptor_52ed23dfc73918ab = []byte{ + // 1095 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcb, 0x6e, 0xdb, 0x46, + 0x14, 0xad, 0x2c, 0xf9, 0xa1, 0xab, 0x87, 0xe9, 0x71, 0x6c, 0xd3, 0x4a, 0xe2, 0x2a, 0x6a, 0x17, + 0x42, 0x51, 0x38, 0xa8, 0x5a, 0x04, 0x41, 0xb3, 0xa9, 0x4c, 0x0d, 0x1c, 0xda, 0x11, 0xe5, 0x8e, + 0x69, 0x14, 0xc9, 0x86, 0x18, 0x93, 0x13, 0x99, 0xb5, 0x45, 0xaa, 0x9a, 0x51, 0x00, 0x6d, 0xfb, + 0x05, 0xfd, 0x80, 0x7e, 0x43, 0xd1, 0xbf, 0xea, 0x6f, 0x14, 0x9c, 0x21, 0x45, 0xd2, 0xa6, 0x9c, + 0x2e, 0xba, 0x91, 0x38, 0xf7, 0x9c, 0x7b, 0xce, 0xdc, 0x79, 0xf0, 0x12, 0xf6, 0xdd, 0x70, 0x32, + 0x99, 0x07, 0xbe, 0x58, 0x38, 0xf3, 0xa9, 0x47, 0x05, 0x3b, 0x9e, 0xce, 0x42, 0x11, 0xa2, 0x2d, + 0xf9, 0x77, 0x3d, 0xff, 0xd8, 0xda, 0x75, 0x6f, 0xa8, 0x70, 0x7c, 0x8f, 0x05, 0xc2, 0x17, 0x0b, + 0x05, 0xb7, 0x76, 0x92, 0x34, 0x9f, 0x71, 0x15, 0xea, 0xfc, 0xd1, 0x80, 0xa6, 0x91, 0x88, 0xe1, + 0x4f, 0x2c, 0x10, 0xa8, 0x07, 0x7b, 0xa9, 0x3c, 0x8b, 0x42, 0x8e, 0x7b, 0x17, 0xba, 0xb7, 0x7a, + 0xa9, 0x5d, 0xea, 0x56, 0xc8, 0xae, 0x9b, 0xa3, 0x1b, 0x11, 0x84, 0x5e, 0x41, 0x45, 0x2c, 0xa6, + 0x4c, 0x5f, 0x6b, 0x97, 0xba, 0xcd, 0x5e, 0xe7, 0x38, 0x99, 0xc7, 0x71, 0x5e, 0xfb, 0x58, 0xfe, + 0xda, 0x8b, 0x29, 0x23, 0x92, 0x8f, 0x06, 0xa0, 0xa5, 0x5e, 0x6e, 0x18, 0x7c, 0xf4, 0xc7, 0x7a, + 0xb9, 0x5d, 0xea, 0xd6, 0x7a, 0x87, 0x05, 0x1a, 0x86, 0x24, 0x90, 0x6d, 0x37, 0x1f, 0x40, 0x43, + 0xd0, 0x44, 0x78, 0xcb, 0x02, 0x67, 0xca, 0x66, 0x13, 0x9f, 0x73, 0x3f, 0x0c, 0xf4, 0x8a, 0x54, + 0x29, 0x9a, 0x89, 0x1d, 0x51, 0x2f, 0x96, 0x4c, 0xb2, 0x2d, 0xf2, 0x01, 0xf4, 0x06, 0x1a, 0x2e, + 0x15, 0x6c, 0x1c, 0xce, 0x16, 0x8e, 0x47, 0x05, 0xd5, 0xd7, 0xa5, 0xd6, 0x7e, 0x46, 0x2b, 0x86, + 0x07, 0x54, 0x50, 0x52, 0x77, 0x33, 0x23, 0xf4, 0x1a, 0xea, 0xee, 0x0d, 0x0d, 0x02, 0x76, 0xa7, + 0x72, 0x37, 0x64, 0xee, 0x5e, 0x26, 0x57, 0xa1, 0x32, 0xb5, 0xe6, 0xa6, 0x03, 0xd4, 0x05, 0x6d, + 0xc2, 0x26, 0xd7, 0x6c, 0xe6, 0x88, 0xd0, 0xa1, 0xae, 0x88, 0xaa, 0xd8, 0x6c, 0x97, 0xba, 0x55, + 0xd2, 0x54, 0x71, 0x3b, 0xec, 0xcb, 0x28, 0xb2, 0xa0, 0xae, 0x22, 0xbc, 0xef, 0x79, 0xcc, 0xd3, + 0xb7, 0xda, 0xe5, 0x6e, 0xad, 0xf7, 0xcd, 0xca, 0x55, 0x1f, 0x66, 0xc8, 0x38, 0x10, 0xb3, 0x05, + 0xc9, 0xe5, 0xa3, 0x3b, 0xd8, 0x9f, 0xb1, 0x5f, 0x99, 0x2b, 0x98, 0x47, 0xd8, 0x6f, 0x73, 0xc6, + 0x05, 0xb7, 0xc3, 0xb3, 0xd0, 0x0f, 0xf4, 0xaa, 0x54, 0xfe, 0x61, 0xa5, 0x32, 0x29, 0x4c, 0x53, + 0x1e, 0x2b, 0x34, 0x23, 0x37, 0xea, 0xba, 0x6c, 0xfa, 0xd0, 0x0d, 0x3e, 0xe3, 0xd6, 0x2f, 0x4c, + 0x8b, 0xdd, 0x8a, 0x35, 0xd1, 0x29, 0x34, 0xd5, 0xd9, 0x98, 0x30, 0x41, 0xe5, 0x8e, 0xd4, 0xe4, + 0x8e, 0xb4, 0x57, 0x9d, 0x8c, 0x61, 0xcc, 0x23, 0x0d, 0x91, 0x1d, 0xb6, 0x3e, 0xc0, 0xce, 0x83, + 0x75, 0x44, 0x1a, 0x94, 0x6f, 0xd9, 0x42, 0xde, 0x8c, 0x2a, 0x89, 0x1e, 0xd1, 0x4b, 0x58, 0xff, + 0x44, 0xef, 0xe6, 0xea, 0x2a, 0x14, 0x1f, 0x63, 0x25, 0x43, 0x14, 0xef, 0xc7, 0xb5, 0xd7, 0xa5, + 0xd6, 0x2d, 0x3c, 0x7d, 0x64, 0x25, 0x0b, 0x5c, 0x5e, 0xe5, 0x5d, 0x8a, 0x8a, 0x89, 0x85, 0x94, + 0xce, 0x3d, 0xb3, 0x47, 0x16, 0xf2, 0xff, 0x35, 0xeb, 0xfc, 0x5d, 0x81, 0xea, 0xf2, 0xd2, 0xa3, + 0x1a, 0x6c, 0x5e, 0x59, 0xe7, 0xd6, 0xe8, 0x17, 0x4b, 0xfb, 0x02, 0x21, 0x68, 0x1a, 0xa3, 0xe1, + 0xf0, 0xca, 0x32, 0xed, 0xf7, 0x0e, 0x1e, 0x98, 0xb6, 0x56, 0x42, 0xdf, 0x42, 0x37, 0x8d, 0x0d, + 0xf1, 0xf0, 0x04, 0x13, 0xc7, 0x1e, 0x9d, 0x63, 0xcb, 0xb9, 0xc0, 0x64, 0x68, 0x5e, 0x5e, 0x9a, + 0x23, 0xcb, 0x31, 0xde, 0xf6, 0xad, 0x53, 0xac, 0xad, 0xfd, 0x37, 0xf6, 0x00, 0xbf, 0xc3, 0x36, + 0xd6, 0xca, 0xe8, 0x39, 0x1c, 0xa6, 0x6c, 0xa3, 0x6f, 0xe3, 0xd3, 0x11, 0x79, 0xef, 0x18, 0x04, + 0xf7, 0x6d, 0xac, 0x55, 0x56, 0xc0, 0x71, 0xf6, 0x3a, 0x7a, 0x0a, 0x07, 0x05, 0xb0, 0x9c, 0xf6, + 0x06, 0x7a, 0x06, 0x7a, 0x06, 0x7c, 0xdb, 0xb7, 0x2c, 0xfc, 0x2e, 0x51, 0xde, 0x2c, 0x46, 0x63, + 0xe1, 0x2d, 0xd4, 0x82, 0xfd, 0x87, 0xa8, 0xd4, 0xad, 0xa2, 0x23, 0x68, 0x15, 0x98, 0x12, 0x3c, + 0x22, 0x03, 0x4c, 0x34, 0xb8, 0x37, 0xe7, 0x38, 0x37, 0x81, 0x6b, 0xe8, 0x6b, 0x68, 0xa7, 0x30, + 0xc1, 0x3f, 0x5f, 0xe1, 0x4b, 0xdb, 0xb1, 0x47, 0xce, 0xd9, 0xc8, 0xb4, 0x9c, 0xbe, 0x61, 0xe0, + 0x0b, 0x5b, 0xab, 0x3f, 0xce, 0x22, 0xf8, 0x0c, 0x1b, 0xb6, 0xd6, 0x40, 0x87, 0xb0, 0xf7, 0x60, + 0xad, 0xcf, 0x4d, 0xe3, 0x5c, 0x6b, 0x22, 0x1d, 0x9e, 0x3c, 0x80, 0x4e, 0xfa, 0x96, 0xb6, 0x9d, + 0xaf, 0x2d, 0x46, 0xae, 0xac, 0x08, 0xd3, 0xd0, 0x01, 0xec, 0xa6, 0x98, 0xda, 0xb5, 0xfe, 0x60, + 0xa0, 0xed, 0x74, 0xfe, 0x5a, 0x83, 0xed, 0x7b, 0xaf, 0x7c, 0xd4, 0x83, 0xad, 0xa4, 0x97, 0xc9, + 0x93, 0x99, 0x7f, 0x1b, 0xdf, 0x50, 0x61, 0xc6, 0x28, 0x59, 0xf2, 0xd0, 0x4f, 0x50, 0x4b, 0xfb, + 0x01, 0x8f, 0x0f, 0xef, 0x51, 0xc1, 0xe1, 0x4d, 0x5f, 0xfd, 0x9c, 0x64, 0x53, 0xa2, 0x77, 0x07, + 0xf5, 0x26, 0x7e, 0xe0, 0x70, 0x26, 0x84, 0x1f, 0x8c, 0x79, 0xdc, 0x9b, 0x8a, 0x6e, 0x40, 0x3f, + 0x22, 0x5e, 0xc6, 0x3c, 0xd2, 0xa0, 0xd9, 0x21, 0xfa, 0x0a, 0x1a, 0x7e, 0x20, 0x66, 0xa1, 0x33, + 0x61, 0x9c, 0xd3, 0x31, 0x93, 0xdd, 0xa9, 0x4a, 0xea, 0x32, 0x38, 0x54, 0xb1, 0x88, 0x14, 0xce, + 0xb3, 0xa4, 0x75, 0x45, 0x92, 0xc1, 0x84, 0x84, 0xa0, 0x22, 0xe8, 0x98, 0xeb, 0x1b, 0xed, 0x72, + 0xb7, 0x4a, 0xe4, 0x73, 0xe7, 0xf7, 0x12, 0xd4, 0xb3, 0x1d, 0x09, 0x7d, 0x09, 0xb5, 0x65, 0x03, + 0xf3, 0xbd, 0xf8, 0x2a, 0x43, 0x12, 0x32, 0xbd, 0x48, 0x25, 0xa0, 0x13, 0x75, 0xa1, 0xab, 0x44, + 0x3e, 0xa3, 0x17, 0xcb, 0xc6, 0xc5, 0x1d, 0xdf, 0x8b, 0x4a, 0x8d, 0x1c, 0x92, 0x0e, 0xc5, 0x4d, + 0x8f, 0xa3, 0x16, 0x6c, 0x4d, 0x43, 0xee, 0x8b, 0xa4, 0xbf, 0xae, 0x93, 0xe5, 0xb8, 0xf3, 0x67, + 0x09, 0x6a, 0x99, 0xd6, 0xf6, 0xf9, 0x39, 0x3c, 0x07, 0x48, 0x1a, 0xa5, 0xef, 0xc5, 0x33, 0xa9, + 0xc6, 0x11, 0xd3, 0xcb, 0x79, 0x95, 0xf3, 0x5e, 0xe8, 0x3b, 0xd8, 0x8c, 0x89, 0x71, 0x9b, 0x3f, + 0x28, 0xfa, 0x58, 0xb8, 0xa1, 0x82, 0x24, 0xbc, 0x8e, 0x05, 0x4f, 0x2e, 0xfd, 0x71, 0xc0, 0xbc, + 0x7b, 0x1f, 0x3b, 0xcf, 0xa0, 0xca, 0xfd, 0x71, 0x40, 0xc5, 0x7c, 0xc6, 0xe4, 0x24, 0xeb, 0x24, + 0x0d, 0x20, 0x1d, 0x36, 0xa7, 0x74, 0x71, 0x17, 0x52, 0x35, 0xc1, 0x3a, 0x49, 0x86, 0x9d, 0x7f, + 0x4a, 0xb0, 0x9f, 0x97, 0xe2, 0xc9, 0x16, 0x45, 0x0b, 0xb9, 0xfc, 0xa6, 0x89, 0x4b, 0xaf, 0x93, + 0xda, 0x32, 0x66, 0x7a, 0xc8, 0x84, 0x17, 0xf2, 0xc3, 0x8a, 0x3b, 0xd7, 0x94, 0x33, 0x27, 0xa5, + 0x7b, 0x8c, 0xbb, 0x33, 0x7f, 0x2a, 0xab, 0x56, 0x8e, 0x47, 0x8a, 0x78, 0x42, 0x39, 0x5b, 0xfa, + 0x0d, 0x52, 0x16, 0x6a, 0xc1, 0x86, 0x62, 0xc8, 0x0d, 0xab, 0x9f, 0xac, 0xe9, 0x25, 0x12, 0x47, + 0x90, 0x01, 0x0d, 0x2e, 0x8b, 0x76, 0x62, 0x4a, 0x45, 0x36, 0xd8, 0xcc, 0x1d, 0x28, 0x5a, 0x13, + 0x52, 0x57, 0x49, 0xaa, 0xaa, 0x8e, 0x0d, 0x47, 0xc5, 0x85, 0x26, 0x1d, 0x0b, 0xf5, 0xa0, 0x3c, + 0xe1, 0xe3, 0xf8, 0x5e, 0xb6, 0x57, 0x75, 0xef, 0x65, 0x5a, 0x44, 0x3e, 0x69, 0x7c, 0xa8, 0x1d, + 0xbf, 0x7c, 0x93, 0x50, 0xaf, 0x37, 0xe4, 0xd3, 0xf7, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x92, + 0x1f, 0x8f, 0xf4, 0xd9, 0x0a, 0x00, 0x00, } diff --git a/protocol/protobuf/contact.pb.go b/protocol/protobuf/contact.pb.go index 3eedcc001..8d4213ba7 100644 --- a/protocol/protobuf/contact.pb.go +++ b/protocol/protobuf/contact.pb.go @@ -1,101 +1,89 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: contact.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type ContactRequestPropagatedState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LocalClock uint64 `protobuf:"varint,1,opt,name=local_clock,json=localClock,proto3" json:"local_clock,omitempty"` - LocalState uint64 `protobuf:"varint,2,opt,name=local_state,json=localState,proto3" json:"local_state,omitempty"` - RemoteClock uint64 `protobuf:"varint,3,opt,name=remote_clock,json=remoteClock,proto3" json:"remote_clock,omitempty"` - RemoteState uint64 `protobuf:"varint,4,opt,name=remote_state,json=remoteState,proto3" json:"remote_state,omitempty"` + LocalClock uint64 `protobuf:"varint,1,opt,name=local_clock,json=localClock,proto3" json:"local_clock,omitempty"` + LocalState uint64 `protobuf:"varint,2,opt,name=local_state,json=localState,proto3" json:"local_state,omitempty"` + RemoteClock uint64 `protobuf:"varint,3,opt,name=remote_clock,json=remoteClock,proto3" json:"remote_clock,omitempty"` + RemoteState uint64 `protobuf:"varint,4,opt,name=remote_state,json=remoteState,proto3" json:"remote_state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ContactRequestPropagatedState) Reset() { - *x = ContactRequestPropagatedState{} - if protoimpl.UnsafeEnabled { - mi := &file_contact_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ContactRequestPropagatedState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ContactRequestPropagatedState) ProtoMessage() {} - -func (x *ContactRequestPropagatedState) ProtoReflect() protoreflect.Message { - mi := &file_contact_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ContactRequestPropagatedState.ProtoReflect.Descriptor instead. +func (m *ContactRequestPropagatedState) Reset() { *m = ContactRequestPropagatedState{} } +func (m *ContactRequestPropagatedState) String() string { return proto.CompactTextString(m) } +func (*ContactRequestPropagatedState) ProtoMessage() {} func (*ContactRequestPropagatedState) Descriptor() ([]byte, []int) { - return file_contact_proto_rawDescGZIP(), []int{0} + return fileDescriptor_a5036fff2565fb15, []int{0} } -func (x *ContactRequestPropagatedState) GetLocalClock() uint64 { - if x != nil { - return x.LocalClock +func (m *ContactRequestPropagatedState) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContactRequestPropagatedState.Unmarshal(m, b) +} +func (m *ContactRequestPropagatedState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContactRequestPropagatedState.Marshal(b, m, deterministic) +} +func (m *ContactRequestPropagatedState) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContactRequestPropagatedState.Merge(m, src) +} +func (m *ContactRequestPropagatedState) XXX_Size() int { + return xxx_messageInfo_ContactRequestPropagatedState.Size(m) +} +func (m *ContactRequestPropagatedState) XXX_DiscardUnknown() { + xxx_messageInfo_ContactRequestPropagatedState.DiscardUnknown(m) +} + +var xxx_messageInfo_ContactRequestPropagatedState proto.InternalMessageInfo + +func (m *ContactRequestPropagatedState) GetLocalClock() uint64 { + if m != nil { + return m.LocalClock } return 0 } -func (x *ContactRequestPropagatedState) GetLocalState() uint64 { - if x != nil { - return x.LocalState +func (m *ContactRequestPropagatedState) GetLocalState() uint64 { + if m != nil { + return m.LocalState } return 0 } -func (x *ContactRequestPropagatedState) GetRemoteClock() uint64 { - if x != nil { - return x.RemoteClock +func (m *ContactRequestPropagatedState) GetRemoteClock() uint64 { + if m != nil { + return m.RemoteClock } return 0 } -func (x *ContactRequestPropagatedState) GetRemoteState() uint64 { - if x != nil { - return x.RemoteState +func (m *ContactRequestPropagatedState) GetRemoteState() uint64 { + if m != nil { + return m.RemoteState } return 0 } type ContactUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` EnsName string `protobuf:"bytes,2,opt,name=ens_name,json=ensName,proto3" json:"ens_name,omitempty"` ProfileImage string `protobuf:"bytes,3,opt,name=profile_image,json=profileImage,proto3" json:"profile_image,omitempty"` @@ -103,346 +91,212 @@ type ContactUpdate struct { ContactRequestClock uint64 `protobuf:"varint,5,opt,name=contact_request_clock,json=contactRequestClock,proto3" json:"contact_request_clock,omitempty"` ContactRequestPropagatedState *ContactRequestPropagatedState `protobuf:"bytes,6,opt,name=contact_request_propagated_state,json=contactRequestPropagatedState,proto3" json:"contact_request_propagated_state,omitempty"` PublicKey string `protobuf:"bytes,7,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ContactUpdate) Reset() { - *x = ContactUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_contact_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ContactUpdate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ContactUpdate) ProtoMessage() {} - -func (x *ContactUpdate) ProtoReflect() protoreflect.Message { - mi := &file_contact_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ContactUpdate.ProtoReflect.Descriptor instead. +func (m *ContactUpdate) Reset() { *m = ContactUpdate{} } +func (m *ContactUpdate) String() string { return proto.CompactTextString(m) } +func (*ContactUpdate) ProtoMessage() {} func (*ContactUpdate) Descriptor() ([]byte, []int) { - return file_contact_proto_rawDescGZIP(), []int{1} + return fileDescriptor_a5036fff2565fb15, []int{1} } -func (x *ContactUpdate) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *ContactUpdate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContactUpdate.Unmarshal(m, b) +} +func (m *ContactUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContactUpdate.Marshal(b, m, deterministic) +} +func (m *ContactUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContactUpdate.Merge(m, src) +} +func (m *ContactUpdate) XXX_Size() int { + return xxx_messageInfo_ContactUpdate.Size(m) +} +func (m *ContactUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_ContactUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_ContactUpdate proto.InternalMessageInfo + +func (m *ContactUpdate) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *ContactUpdate) GetEnsName() string { - if x != nil { - return x.EnsName +func (m *ContactUpdate) GetEnsName() string { + if m != nil { + return m.EnsName } return "" } -func (x *ContactUpdate) GetProfileImage() string { - if x != nil { - return x.ProfileImage +func (m *ContactUpdate) GetProfileImage() string { + if m != nil { + return m.ProfileImage } return "" } -func (x *ContactUpdate) GetDisplayName() string { - if x != nil { - return x.DisplayName +func (m *ContactUpdate) GetDisplayName() string { + if m != nil { + return m.DisplayName } return "" } -func (x *ContactUpdate) GetContactRequestClock() uint64 { - if x != nil { - return x.ContactRequestClock +func (m *ContactUpdate) GetContactRequestClock() uint64 { + if m != nil { + return m.ContactRequestClock } return 0 } -func (x *ContactUpdate) GetContactRequestPropagatedState() *ContactRequestPropagatedState { - if x != nil { - return x.ContactRequestPropagatedState +func (m *ContactUpdate) GetContactRequestPropagatedState() *ContactRequestPropagatedState { + if m != nil { + return m.ContactRequestPropagatedState } return nil } -func (x *ContactUpdate) GetPublicKey() string { - if x != nil { - return x.PublicKey +func (m *ContactUpdate) GetPublicKey() string { + if m != nil { + return m.PublicKey } return "" } type AcceptContactRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Clock uint64 `protobuf:"varint,2,opt,name=clock,proto3" json:"clock,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Clock uint64 `protobuf:"varint,2,opt,name=clock,proto3" json:"clock,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AcceptContactRequest) Reset() { - *x = AcceptContactRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_contact_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AcceptContactRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AcceptContactRequest) ProtoMessage() {} - -func (x *AcceptContactRequest) ProtoReflect() protoreflect.Message { - mi := &file_contact_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AcceptContactRequest.ProtoReflect.Descriptor instead. +func (m *AcceptContactRequest) Reset() { *m = AcceptContactRequest{} } +func (m *AcceptContactRequest) String() string { return proto.CompactTextString(m) } +func (*AcceptContactRequest) ProtoMessage() {} func (*AcceptContactRequest) Descriptor() ([]byte, []int) { - return file_contact_proto_rawDescGZIP(), []int{2} + return fileDescriptor_a5036fff2565fb15, []int{2} } -func (x *AcceptContactRequest) GetId() string { - if x != nil { - return x.Id +func (m *AcceptContactRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AcceptContactRequest.Unmarshal(m, b) +} +func (m *AcceptContactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AcceptContactRequest.Marshal(b, m, deterministic) +} +func (m *AcceptContactRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AcceptContactRequest.Merge(m, src) +} +func (m *AcceptContactRequest) XXX_Size() int { + return xxx_messageInfo_AcceptContactRequest.Size(m) +} +func (m *AcceptContactRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AcceptContactRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AcceptContactRequest proto.InternalMessageInfo + +func (m *AcceptContactRequest) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *AcceptContactRequest) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *AcceptContactRequest) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } type RetractContactRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Clock uint64 `protobuf:"varint,2,opt,name=clock,proto3" json:"clock,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Clock uint64 `protobuf:"varint,2,opt,name=clock,proto3" json:"clock,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *RetractContactRequest) Reset() { - *x = RetractContactRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_contact_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RetractContactRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RetractContactRequest) ProtoMessage() {} - -func (x *RetractContactRequest) ProtoReflect() protoreflect.Message { - mi := &file_contact_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RetractContactRequest.ProtoReflect.Descriptor instead. +func (m *RetractContactRequest) Reset() { *m = RetractContactRequest{} } +func (m *RetractContactRequest) String() string { return proto.CompactTextString(m) } +func (*RetractContactRequest) ProtoMessage() {} func (*RetractContactRequest) Descriptor() ([]byte, []int) { - return file_contact_proto_rawDescGZIP(), []int{3} + return fileDescriptor_a5036fff2565fb15, []int{3} } -func (x *RetractContactRequest) GetId() string { - if x != nil { - return x.Id +func (m *RetractContactRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RetractContactRequest.Unmarshal(m, b) +} +func (m *RetractContactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RetractContactRequest.Marshal(b, m, deterministic) +} +func (m *RetractContactRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RetractContactRequest.Merge(m, src) +} +func (m *RetractContactRequest) XXX_Size() int { + return xxx_messageInfo_RetractContactRequest.Size(m) +} +func (m *RetractContactRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RetractContactRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RetractContactRequest proto.InternalMessageInfo + +func (m *RetractContactRequest) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *RetractContactRequest) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *RetractContactRequest) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -var File_contact_proto protoreflect.FileDescriptor - -var file_contact_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0xa7, 0x01, 0x0a, 0x1d, 0x43, 0x6f, - 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x70, - 0x61, 0x67, 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1f, 0x0a, 0x0b, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x21, 0x0a, - 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x43, 0x6c, 0x6f, 0x63, 0x6b, - 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x22, 0xcd, 0x02, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x19, 0x0a, 0x08, 0x65, - 0x6e, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, - 0x6e, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, - 0x65, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, - 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, - 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x32, - 0x0a, 0x15, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x5f, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x63, - 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6c, 0x6f, - 0x63, 0x6b, 0x12, 0x70, 0x0a, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, 0x64, - 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, 0x64, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x1d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, 0x64, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, - 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, - 0x4b, 0x65, 0x79, 0x22, 0x3c, 0x0a, 0x14, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x43, 0x6f, 0x6e, - 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, - 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, - 0x6b, 0x22, 0x3d, 0x0a, 0x15, 0x52, 0x65, 0x74, 0x72, 0x61, 0x63, 0x74, 0x43, 0x6f, 0x6e, 0x74, - 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, - 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, - 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterType((*ContactRequestPropagatedState)(nil), "protobuf.ContactRequestPropagatedState") + proto.RegisterType((*ContactUpdate)(nil), "protobuf.ContactUpdate") + proto.RegisterType((*AcceptContactRequest)(nil), "protobuf.AcceptContactRequest") + proto.RegisterType((*RetractContactRequest)(nil), "protobuf.RetractContactRequest") } -var ( - file_contact_proto_rawDescOnce sync.Once - file_contact_proto_rawDescData = file_contact_proto_rawDesc -) - -func file_contact_proto_rawDescGZIP() []byte { - file_contact_proto_rawDescOnce.Do(func() { - file_contact_proto_rawDescData = protoimpl.X.CompressGZIP(file_contact_proto_rawDescData) - }) - return file_contact_proto_rawDescData +func init() { + proto.RegisterFile("contact.proto", fileDescriptor_a5036fff2565fb15) } -var file_contact_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_contact_proto_goTypes = []interface{}{ - (*ContactRequestPropagatedState)(nil), // 0: protobuf.ContactRequestPropagatedState - (*ContactUpdate)(nil), // 1: protobuf.ContactUpdate - (*AcceptContactRequest)(nil), // 2: protobuf.AcceptContactRequest - (*RetractContactRequest)(nil), // 3: protobuf.RetractContactRequest -} -var file_contact_proto_depIdxs = []int32{ - 0, // 0: protobuf.ContactUpdate.contact_request_propagated_state:type_name -> protobuf.ContactRequestPropagatedState - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_contact_proto_init() } -func file_contact_proto_init() { - if File_contact_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_contact_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContactRequestPropagatedState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contact_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContactUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contact_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AcceptContactRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contact_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RetractContactRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_contact_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_contact_proto_goTypes, - DependencyIndexes: file_contact_proto_depIdxs, - MessageInfos: file_contact_proto_msgTypes, - }.Build() - File_contact_proto = out.File - file_contact_proto_rawDesc = nil - file_contact_proto_goTypes = nil - file_contact_proto_depIdxs = nil +var fileDescriptor_a5036fff2565fb15 = []byte{ + // 348 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x51, 0x3f, 0x4f, 0xfb, 0x30, + 0x14, 0x54, 0xf2, 0xeb, 0xbf, 0xbc, 0x34, 0xbf, 0x21, 0xb4, 0x52, 0x19, 0x2a, 0x4a, 0x18, 0xe8, + 0x14, 0xa4, 0x32, 0x02, 0x03, 0x74, 0x42, 0x48, 0x08, 0x19, 0xb1, 0xb0, 0x44, 0xae, 0xf3, 0x5a, + 0x45, 0x4d, 0x62, 0xe3, 0xb8, 0x43, 0x3f, 0x11, 0x9f, 0x86, 0xef, 0x84, 0x62, 0xbb, 0x34, 0x65, + 0xe8, 0xc0, 0x94, 0xf8, 0x7c, 0xef, 0x7c, 0x77, 0x0f, 0x02, 0xc6, 0x4b, 0x45, 0x99, 0x8a, 0x85, + 0xe4, 0x8a, 0x87, 0x3d, 0xfd, 0x59, 0x6c, 0x96, 0xd1, 0xa7, 0x03, 0xe3, 0xb9, 0xb9, 0x23, 0xf8, + 0xb1, 0xc1, 0x4a, 0xbd, 0x48, 0x2e, 0xe8, 0x8a, 0x2a, 0x4c, 0x5f, 0x15, 0x55, 0x18, 0x9e, 0x81, + 0x9f, 0x73, 0x46, 0xf3, 0x84, 0xe5, 0x9c, 0xad, 0x47, 0xce, 0xc4, 0x99, 0xb6, 0x08, 0x68, 0x68, + 0x5e, 0x23, 0x7b, 0x42, 0x55, 0xf3, 0x47, 0x6e, 0x83, 0x60, 0x14, 0xce, 0xa1, 0x2f, 0xb1, 0xe0, + 0x0a, 0xad, 0xc4, 0x3f, 0xcd, 0xf0, 0x0d, 0x66, 0x34, 0xf6, 0x14, 0x23, 0xd2, 0x6a, 0x52, 0xb4, + 0x4a, 0xf4, 0xe5, 0x42, 0x60, 0x9d, 0xbe, 0x89, 0xb4, 0xd6, 0x1d, 0x40, 0xbb, 0xe9, 0xc9, 0x1c, + 0xc2, 0x53, 0xe8, 0x61, 0x59, 0x25, 0x25, 0x2d, 0x8c, 0x17, 0x8f, 0x74, 0xb1, 0xac, 0x9e, 0x69, + 0x81, 0xe1, 0x05, 0x04, 0x42, 0xf2, 0x65, 0x96, 0x63, 0x92, 0x15, 0x74, 0x85, 0xda, 0x89, 0x47, + 0xfa, 0x16, 0x7c, 0xac, 0xb1, 0xda, 0x4a, 0x9a, 0x55, 0x22, 0xa7, 0x5b, 0xa3, 0xd1, 0xd2, 0x1c, + 0xdf, 0x62, 0x5a, 0x67, 0x06, 0x43, 0xdb, 0x67, 0x22, 0x4d, 0x69, 0x36, 0x59, 0x5b, 0x1b, 0x39, + 0x61, 0x07, 0x85, 0x9a, 0x84, 0x02, 0x26, 0xbf, 0x67, 0xc4, 0x4f, 0xd3, 0x36, 0x75, 0x67, 0xe2, + 0x4c, 0xfd, 0xd9, 0x65, 0xbc, 0xdb, 0x4e, 0x7c, 0x74, 0x33, 0x64, 0xcc, 0x8e, 0x2e, 0x6e, 0x0c, + 0x20, 0x36, 0x8b, 0x3c, 0x63, 0xc9, 0x1a, 0xb7, 0xa3, 0xae, 0x8e, 0xe1, 0x19, 0xe4, 0x09, 0xb7, + 0xd1, 0x2d, 0x0c, 0xee, 0x19, 0x43, 0xa1, 0x0e, 0x1f, 0x09, 0xff, 0x83, 0x9b, 0xa5, 0xba, 0x52, + 0x8f, 0xb8, 0x59, 0xba, 0x6f, 0xd9, 0x6d, 0xb4, 0x1c, 0xdd, 0xc1, 0x90, 0xa0, 0x92, 0x94, 0xfd, + 0x69, 0xfc, 0x21, 0x78, 0xf7, 0xe3, 0xab, 0x9b, 0x5d, 0xce, 0x45, 0x47, 0xff, 0x5d, 0x7f, 0x07, + 0x00, 0x00, 0xff, 0xff, 0xec, 0x6f, 0x01, 0xce, 0xa7, 0x02, 0x00, 0x00, } diff --git a/protocol/protobuf/contact_verification.pb.go b/protocol/protobuf/contact_verification.pb.go index 44c129dcd..db8442919 100644 --- a/protocol/protobuf/contact_verification.pb.go +++ b/protocol/protobuf/contact_verification.pb.go @@ -1,380 +1,245 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: contact_verification.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type RequestContactVerification struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Challenge string `protobuf:"bytes,3,opt,name=challenge,proto3" json:"challenge,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Challenge string `protobuf:"bytes,3,opt,name=challenge,proto3" json:"challenge,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *RequestContactVerification) Reset() { - *x = RequestContactVerification{} - if protoimpl.UnsafeEnabled { - mi := &file_contact_verification_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestContactVerification) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestContactVerification) ProtoMessage() {} - -func (x *RequestContactVerification) ProtoReflect() protoreflect.Message { - mi := &file_contact_verification_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RequestContactVerification.ProtoReflect.Descriptor instead. +func (m *RequestContactVerification) Reset() { *m = RequestContactVerification{} } +func (m *RequestContactVerification) String() string { return proto.CompactTextString(m) } +func (*RequestContactVerification) ProtoMessage() {} func (*RequestContactVerification) Descriptor() ([]byte, []int) { - return file_contact_verification_proto_rawDescGZIP(), []int{0} + return fileDescriptor_d6997df64de39454, []int{0} } -func (x *RequestContactVerification) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *RequestContactVerification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RequestContactVerification.Unmarshal(m, b) +} +func (m *RequestContactVerification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RequestContactVerification.Marshal(b, m, deterministic) +} +func (m *RequestContactVerification) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestContactVerification.Merge(m, src) +} +func (m *RequestContactVerification) XXX_Size() int { + return xxx_messageInfo_RequestContactVerification.Size(m) +} +func (m *RequestContactVerification) XXX_DiscardUnknown() { + xxx_messageInfo_RequestContactVerification.DiscardUnknown(m) +} + +var xxx_messageInfo_RequestContactVerification proto.InternalMessageInfo + +func (m *RequestContactVerification) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *RequestContactVerification) GetChallenge() string { - if x != nil { - return x.Challenge +func (m *RequestContactVerification) GetChallenge() string { + if m != nil { + return m.Challenge } return "" } type AcceptContactVerification struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - Response string `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Response string `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AcceptContactVerification) Reset() { - *x = AcceptContactVerification{} - if protoimpl.UnsafeEnabled { - mi := &file_contact_verification_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AcceptContactVerification) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AcceptContactVerification) ProtoMessage() {} - -func (x *AcceptContactVerification) ProtoReflect() protoreflect.Message { - mi := &file_contact_verification_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AcceptContactVerification.ProtoReflect.Descriptor instead. +func (m *AcceptContactVerification) Reset() { *m = AcceptContactVerification{} } +func (m *AcceptContactVerification) String() string { return proto.CompactTextString(m) } +func (*AcceptContactVerification) ProtoMessage() {} func (*AcceptContactVerification) Descriptor() ([]byte, []int) { - return file_contact_verification_proto_rawDescGZIP(), []int{1} + return fileDescriptor_d6997df64de39454, []int{1} } -func (x *AcceptContactVerification) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *AcceptContactVerification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AcceptContactVerification.Unmarshal(m, b) +} +func (m *AcceptContactVerification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AcceptContactVerification.Marshal(b, m, deterministic) +} +func (m *AcceptContactVerification) XXX_Merge(src proto.Message) { + xxx_messageInfo_AcceptContactVerification.Merge(m, src) +} +func (m *AcceptContactVerification) XXX_Size() int { + return xxx_messageInfo_AcceptContactVerification.Size(m) +} +func (m *AcceptContactVerification) XXX_DiscardUnknown() { + xxx_messageInfo_AcceptContactVerification.DiscardUnknown(m) +} + +var xxx_messageInfo_AcceptContactVerification proto.InternalMessageInfo + +func (m *AcceptContactVerification) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *AcceptContactVerification) GetId() string { - if x != nil { - return x.Id +func (m *AcceptContactVerification) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *AcceptContactVerification) GetResponse() string { - if x != nil { - return x.Response +func (m *AcceptContactVerification) GetResponse() string { + if m != nil { + return m.Response } return "" } type DeclineContactVerification struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *DeclineContactVerification) Reset() { - *x = DeclineContactVerification{} - if protoimpl.UnsafeEnabled { - mi := &file_contact_verification_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeclineContactVerification) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeclineContactVerification) ProtoMessage() {} - -func (x *DeclineContactVerification) ProtoReflect() protoreflect.Message { - mi := &file_contact_verification_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeclineContactVerification.ProtoReflect.Descriptor instead. +func (m *DeclineContactVerification) Reset() { *m = DeclineContactVerification{} } +func (m *DeclineContactVerification) String() string { return proto.CompactTextString(m) } +func (*DeclineContactVerification) ProtoMessage() {} func (*DeclineContactVerification) Descriptor() ([]byte, []int) { - return file_contact_verification_proto_rawDescGZIP(), []int{2} + return fileDescriptor_d6997df64de39454, []int{2} } -func (x *DeclineContactVerification) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *DeclineContactVerification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeclineContactVerification.Unmarshal(m, b) +} +func (m *DeclineContactVerification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeclineContactVerification.Marshal(b, m, deterministic) +} +func (m *DeclineContactVerification) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeclineContactVerification.Merge(m, src) +} +func (m *DeclineContactVerification) XXX_Size() int { + return xxx_messageInfo_DeclineContactVerification.Size(m) +} +func (m *DeclineContactVerification) XXX_DiscardUnknown() { + xxx_messageInfo_DeclineContactVerification.DiscardUnknown(m) +} + +var xxx_messageInfo_DeclineContactVerification proto.InternalMessageInfo + +func (m *DeclineContactVerification) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *DeclineContactVerification) GetId() string { - if x != nil { - return x.Id +func (m *DeclineContactVerification) GetId() string { + if m != nil { + return m.Id } return "" } type CancelContactVerification struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CancelContactVerification) Reset() { - *x = CancelContactVerification{} - if protoimpl.UnsafeEnabled { - mi := &file_contact_verification_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CancelContactVerification) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CancelContactVerification) ProtoMessage() {} - -func (x *CancelContactVerification) ProtoReflect() protoreflect.Message { - mi := &file_contact_verification_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CancelContactVerification.ProtoReflect.Descriptor instead. +func (m *CancelContactVerification) Reset() { *m = CancelContactVerification{} } +func (m *CancelContactVerification) String() string { return proto.CompactTextString(m) } +func (*CancelContactVerification) ProtoMessage() {} func (*CancelContactVerification) Descriptor() ([]byte, []int) { - return file_contact_verification_proto_rawDescGZIP(), []int{3} + return fileDescriptor_d6997df64de39454, []int{3} } -func (x *CancelContactVerification) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *CancelContactVerification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CancelContactVerification.Unmarshal(m, b) +} +func (m *CancelContactVerification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CancelContactVerification.Marshal(b, m, deterministic) +} +func (m *CancelContactVerification) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelContactVerification.Merge(m, src) +} +func (m *CancelContactVerification) XXX_Size() int { + return xxx_messageInfo_CancelContactVerification.Size(m) +} +func (m *CancelContactVerification) XXX_DiscardUnknown() { + xxx_messageInfo_CancelContactVerification.DiscardUnknown(m) +} + +var xxx_messageInfo_CancelContactVerification proto.InternalMessageInfo + +func (m *CancelContactVerification) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *CancelContactVerification) GetId() string { - if x != nil { - return x.Id +func (m *CancelContactVerification) GetId() string { + if m != nil { + return m.Id } return "" } -var File_contact_verification_proto protoreflect.FileDescriptor - -var file_contact_verification_proto_rawDesc = []byte{ - 0x0a, 0x1a, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x50, 0x0a, 0x1a, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, - 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, - 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x22, 0x5d, 0x0a, 0x19, 0x41, 0x63, 0x63, 0x65, - 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x42, 0x0a, 0x1a, 0x44, 0x65, 0x63, 0x6c, 0x69, - 0x6e, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x41, 0x0a, 0x19, 0x43, - 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x56, 0x65, 0x72, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, - 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x42, 0x0d, - 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterType((*RequestContactVerification)(nil), "protobuf.RequestContactVerification") + proto.RegisterType((*AcceptContactVerification)(nil), "protobuf.AcceptContactVerification") + proto.RegisterType((*DeclineContactVerification)(nil), "protobuf.DeclineContactVerification") + proto.RegisterType((*CancelContactVerification)(nil), "protobuf.CancelContactVerification") } -var ( - file_contact_verification_proto_rawDescOnce sync.Once - file_contact_verification_proto_rawDescData = file_contact_verification_proto_rawDesc -) - -func file_contact_verification_proto_rawDescGZIP() []byte { - file_contact_verification_proto_rawDescOnce.Do(func() { - file_contact_verification_proto_rawDescData = protoimpl.X.CompressGZIP(file_contact_verification_proto_rawDescData) - }) - return file_contact_verification_proto_rawDescData +func init() { + proto.RegisterFile("contact_verification.proto", fileDescriptor_d6997df64de39454) } -var file_contact_verification_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_contact_verification_proto_goTypes = []interface{}{ - (*RequestContactVerification)(nil), // 0: protobuf.RequestContactVerification - (*AcceptContactVerification)(nil), // 1: protobuf.AcceptContactVerification - (*DeclineContactVerification)(nil), // 2: protobuf.DeclineContactVerification - (*CancelContactVerification)(nil), // 3: protobuf.CancelContactVerification -} -var file_contact_verification_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_contact_verification_proto_init() } -func file_contact_verification_proto_init() { - if File_contact_verification_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_contact_verification_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestContactVerification); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contact_verification_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AcceptContactVerification); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contact_verification_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeclineContactVerification); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contact_verification_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelContactVerification); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_contact_verification_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_contact_verification_proto_goTypes, - DependencyIndexes: file_contact_verification_proto_depIdxs, - MessageInfos: file_contact_verification_proto_msgTypes, - }.Build() - File_contact_verification_proto = out.File - file_contact_verification_proto_rawDesc = nil - file_contact_verification_proto_goTypes = nil - file_contact_verification_proto_depIdxs = nil +var fileDescriptor_d6997df64de39454 = []byte{ + // 194 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4a, 0xce, 0xcf, 0x2b, + 0x49, 0x4c, 0x2e, 0x89, 0x2f, 0x4b, 0x2d, 0xca, 0x4c, 0xcb, 0x4c, 0x4e, 0x2c, 0xc9, 0xcc, 0xcf, + 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x00, 0x53, 0x49, 0xa5, 0x69, 0x4a, 0x01, 0x5c, + 0x52, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0xce, 0x10, 0xe5, 0x61, 0x48, 0xaa, 0x85, 0x44, + 0xb8, 0x58, 0x93, 0x73, 0xf2, 0x93, 0xb3, 0x25, 0x18, 0x15, 0x18, 0x35, 0x58, 0x82, 0x20, 0x1c, + 0x21, 0x19, 0x2e, 0xce, 0xe4, 0x8c, 0xc4, 0x9c, 0x9c, 0xd4, 0xbc, 0xf4, 0x54, 0x09, 0x66, 0x05, + 0x46, 0x0d, 0xce, 0x20, 0x84, 0x80, 0x52, 0x2c, 0x97, 0xa4, 0x63, 0x72, 0x72, 0x6a, 0x01, 0x09, + 0x06, 0xf2, 0x71, 0x31, 0x65, 0xa6, 0x48, 0x30, 0x81, 0x4d, 0x62, 0xca, 0x4c, 0x11, 0x92, 0xe2, + 0xe2, 0x28, 0x4a, 0x2d, 0x2e, 0xc8, 0xcf, 0x2b, 0x86, 0x99, 0x0f, 0xe7, 0x2b, 0x39, 0x71, 0x49, + 0xb9, 0xa4, 0x26, 0xe7, 0x64, 0xe6, 0xa5, 0x92, 0x6d, 0xbe, 0x92, 0x23, 0x97, 0xa4, 0x73, 0x62, + 0x5e, 0x72, 0x6a, 0x0e, 0xd9, 0x46, 0x38, 0xf1, 0x46, 0x71, 0xeb, 0xe9, 0x5b, 0xc3, 0x82, 0x31, + 0x89, 0x0d, 0xcc, 0x32, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xd4, 0x2b, 0x89, 0x8f, 0x75, 0x01, + 0x00, 0x00, } diff --git a/protocol/protobuf/emoji_reaction.pb.go b/protocol/protobuf/emoji_reaction.pb.go index cd33ee741..f4df3ea1e 100644 --- a/protocol/protobuf/emoji_reaction.pb.go +++ b/protocol/protobuf/emoji_reaction.pb.go @@ -1,24 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: emoji_reaction.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type EmojiReaction_Type int32 @@ -32,60 +32,35 @@ const ( EmojiReaction_ANGRY EmojiReaction_Type = 6 ) -// Enum value maps for EmojiReaction_Type. -var ( - EmojiReaction_Type_name = map[int32]string{ - 0: "UNKNOWN_EMOJI_REACTION_TYPE", - 1: "LOVE", - 2: "THUMBS_UP", - 3: "THUMBS_DOWN", - 4: "LAUGH", - 5: "SAD", - 6: "ANGRY", - } - EmojiReaction_Type_value = map[string]int32{ - "UNKNOWN_EMOJI_REACTION_TYPE": 0, - "LOVE": 1, - "THUMBS_UP": 2, - "THUMBS_DOWN": 3, - "LAUGH": 4, - "SAD": 5, - "ANGRY": 6, - } -) +var EmojiReaction_Type_name = map[int32]string{ + 0: "UNKNOWN_EMOJI_REACTION_TYPE", + 1: "LOVE", + 2: "THUMBS_UP", + 3: "THUMBS_DOWN", + 4: "LAUGH", + 5: "SAD", + 6: "ANGRY", +} -func (x EmojiReaction_Type) Enum() *EmojiReaction_Type { - p := new(EmojiReaction_Type) - *p = x - return p +var EmojiReaction_Type_value = map[string]int32{ + "UNKNOWN_EMOJI_REACTION_TYPE": 0, + "LOVE": 1, + "THUMBS_UP": 2, + "THUMBS_DOWN": 3, + "LAUGH": 4, + "SAD": 5, + "ANGRY": 6, } func (x EmojiReaction_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(EmojiReaction_Type_name, int32(x)) } -func (EmojiReaction_Type) Descriptor() protoreflect.EnumDescriptor { - return file_emoji_reaction_proto_enumTypes[0].Descriptor() -} - -func (EmojiReaction_Type) Type() protoreflect.EnumType { - return &file_emoji_reaction_proto_enumTypes[0] -} - -func (x EmojiReaction_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use EmojiReaction_Type.Descriptor instead. func (EmojiReaction_Type) EnumDescriptor() ([]byte, []int) { - return file_emoji_reaction_proto_rawDescGZIP(), []int{0, 0} + return fileDescriptor_0a088c907bbc7ed6, []int{0, 0} } type EmojiReaction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // clock Lamport timestamp of the chat message Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` // chat_id the ID of the chat the message belongs to, for query efficiency the chat_id is stored in the db even though the @@ -100,192 +75,117 @@ type EmojiReaction struct { // whether this is a rectraction of a previously sent emoji Retracted bool `protobuf:"varint,6,opt,name=retracted,proto3" json:"retracted,omitempty"` // Grant for organisation chat messages - // - // Deprecated: Marked as deprecated in emoji_reaction.proto. - Grant []byte `protobuf:"bytes,7,opt,name=grant,proto3" json:"grant,omitempty"` + Grant []byte `protobuf:"bytes,7,opt,name=grant,proto3" json:"grant,omitempty"` // Deprecated: Do not use. + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *EmojiReaction) Reset() { - *x = EmojiReaction{} - if protoimpl.UnsafeEnabled { - mi := &file_emoji_reaction_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EmojiReaction) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EmojiReaction) ProtoMessage() {} - -func (x *EmojiReaction) ProtoReflect() protoreflect.Message { - mi := &file_emoji_reaction_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EmojiReaction.ProtoReflect.Descriptor instead. +func (m *EmojiReaction) Reset() { *m = EmojiReaction{} } +func (m *EmojiReaction) String() string { return proto.CompactTextString(m) } +func (*EmojiReaction) ProtoMessage() {} func (*EmojiReaction) Descriptor() ([]byte, []int) { - return file_emoji_reaction_proto_rawDescGZIP(), []int{0} + return fileDescriptor_0a088c907bbc7ed6, []int{0} } -func (x *EmojiReaction) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *EmojiReaction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EmojiReaction.Unmarshal(m, b) +} +func (m *EmojiReaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EmojiReaction.Marshal(b, m, deterministic) +} +func (m *EmojiReaction) XXX_Merge(src proto.Message) { + xxx_messageInfo_EmojiReaction.Merge(m, src) +} +func (m *EmojiReaction) XXX_Size() int { + return xxx_messageInfo_EmojiReaction.Size(m) +} +func (m *EmojiReaction) XXX_DiscardUnknown() { + xxx_messageInfo_EmojiReaction.DiscardUnknown(m) +} + +var xxx_messageInfo_EmojiReaction proto.InternalMessageInfo + +func (m *EmojiReaction) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *EmojiReaction) GetChatId() string { - if x != nil { - return x.ChatId +func (m *EmojiReaction) GetChatId() string { + if m != nil { + return m.ChatId } return "" } -func (x *EmojiReaction) GetMessageId() string { - if x != nil { - return x.MessageId +func (m *EmojiReaction) GetMessageId() string { + if m != nil { + return m.MessageId } return "" } -func (x *EmojiReaction) GetMessageType() MessageType { - if x != nil { - return x.MessageType +func (m *EmojiReaction) GetMessageType() MessageType { + if m != nil { + return m.MessageType } return MessageType_UNKNOWN_MESSAGE_TYPE } -func (x *EmojiReaction) GetType() EmojiReaction_Type { - if x != nil { - return x.Type +func (m *EmojiReaction) GetType() EmojiReaction_Type { + if m != nil { + return m.Type } return EmojiReaction_UNKNOWN_EMOJI_REACTION_TYPE } -func (x *EmojiReaction) GetRetracted() bool { - if x != nil { - return x.Retracted +func (m *EmojiReaction) GetRetracted() bool { + if m != nil { + return m.Retracted } return false } -// Deprecated: Marked as deprecated in emoji_reaction.proto. -func (x *EmojiReaction) GetGrant() []byte { - if x != nil { - return x.Grant +// Deprecated: Do not use. +func (m *EmojiReaction) GetGrant() []byte { + if m != nil { + return m.Grant } return nil } -var File_emoji_reaction_proto protoreflect.FileDescriptor - -var file_emoji_reaction_proto_rawDesc = []byte{ - 0x0a, 0x14, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x5f, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x1a, 0x0b, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf3, 0x02, - 0x0a, 0x0d, 0x45, 0x6d, 0x6f, 0x6a, 0x69, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, - 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12, 0x1d, - 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x38, 0x0a, - 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x45, 0x6d, 0x6f, 0x6a, 0x69, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, - 0x74, 0x22, 0x70, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x55, 0x4e, 0x4b, - 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x45, 0x4d, 0x4f, 0x4a, 0x49, 0x5f, 0x52, 0x45, 0x41, 0x43, 0x54, - 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x4f, - 0x56, 0x45, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x48, 0x55, 0x4d, 0x42, 0x53, 0x5f, 0x55, - 0x50, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x48, 0x55, 0x4d, 0x42, 0x53, 0x5f, 0x44, 0x4f, - 0x57, 0x4e, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x4c, 0x41, 0x55, 0x47, 0x48, 0x10, 0x04, 0x12, - 0x07, 0x0a, 0x03, 0x53, 0x41, 0x44, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4e, 0x47, 0x52, - 0x59, 0x10, 0x06, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterEnum("protobuf.EmojiReaction_Type", EmojiReaction_Type_name, EmojiReaction_Type_value) + proto.RegisterType((*EmojiReaction)(nil), "protobuf.EmojiReaction") } -var ( - file_emoji_reaction_proto_rawDescOnce sync.Once - file_emoji_reaction_proto_rawDescData = file_emoji_reaction_proto_rawDesc -) - -func file_emoji_reaction_proto_rawDescGZIP() []byte { - file_emoji_reaction_proto_rawDescOnce.Do(func() { - file_emoji_reaction_proto_rawDescData = protoimpl.X.CompressGZIP(file_emoji_reaction_proto_rawDescData) - }) - return file_emoji_reaction_proto_rawDescData +func init() { + proto.RegisterFile("emoji_reaction.proto", fileDescriptor_0a088c907bbc7ed6) } -var file_emoji_reaction_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_emoji_reaction_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_emoji_reaction_proto_goTypes = []interface{}{ - (EmojiReaction_Type)(0), // 0: protobuf.EmojiReaction.Type - (*EmojiReaction)(nil), // 1: protobuf.EmojiReaction - (MessageType)(0), // 2: protobuf.MessageType -} -var file_emoji_reaction_proto_depIdxs = []int32{ - 2, // 0: protobuf.EmojiReaction.message_type:type_name -> protobuf.MessageType - 0, // 1: protobuf.EmojiReaction.type:type_name -> protobuf.EmojiReaction.Type - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_emoji_reaction_proto_init() } -func file_emoji_reaction_proto_init() { - if File_emoji_reaction_proto != nil { - return - } - file_enums_proto_init() - if !protoimpl.UnsafeEnabled { - file_emoji_reaction_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmojiReaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_emoji_reaction_proto_rawDesc, - NumEnums: 1, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_emoji_reaction_proto_goTypes, - DependencyIndexes: file_emoji_reaction_proto_depIdxs, - EnumInfos: file_emoji_reaction_proto_enumTypes, - MessageInfos: file_emoji_reaction_proto_msgTypes, - }.Build() - File_emoji_reaction_proto = out.File - file_emoji_reaction_proto_rawDesc = nil - file_emoji_reaction_proto_goTypes = nil - file_emoji_reaction_proto_depIdxs = nil +var fileDescriptor_0a088c907bbc7ed6 = []byte{ + // 332 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0x51, 0x4f, 0x82, 0x50, + 0x1c, 0xc5, 0xbb, 0x08, 0x28, 0x7f, 0xb4, 0xd8, 0x9d, 0x2d, 0x56, 0xb6, 0x98, 0x4f, 0x3c, 0x51, + 0xab, 0x97, 0xb6, 0x9e, 0x30, 0x99, 0x52, 0x0a, 0xee, 0x0a, 0x39, 0x7b, 0x61, 0x08, 0x37, 0xb3, + 0x42, 0x18, 0xe2, 0x83, 0x9f, 0xbb, 0x2f, 0xd0, 0xb8, 0xe8, 0x5c, 0x4f, 0xf7, 0x9e, 0xdf, 0x39, + 0x67, 0xf7, 0x5c, 0x68, 0xd3, 0x24, 0xfd, 0x5a, 0x05, 0x39, 0x0d, 0xa3, 0x62, 0x95, 0xae, 0x8d, + 0x2c, 0x4f, 0x8b, 0x14, 0x37, 0xd8, 0xb1, 0xd8, 0x7e, 0x5c, 0xca, 0x74, 0xbd, 0x4d, 0x36, 0x15, + 0xee, 0xfe, 0x72, 0xd0, 0xb2, 0xca, 0x3c, 0xd9, 0xc7, 0x71, 0x1b, 0x84, 0xe8, 0x27, 0x8d, 0xbe, + 0x55, 0xa4, 0x21, 0x9d, 0x27, 0x95, 0xc0, 0x17, 0x50, 0x8f, 0x3e, 0xc3, 0x22, 0x58, 0xc5, 0x2a, + 0xa7, 0x21, 0x5d, 0x22, 0x62, 0x29, 0xed, 0x18, 0x5f, 0x03, 0x24, 0x74, 0xb3, 0x09, 0x97, 0xb4, + 0xf4, 0x6a, 0xcc, 0x93, 0xf6, 0xc4, 0x8e, 0xf1, 0x23, 0x34, 0x0f, 0x76, 0xb1, 0xcb, 0xa8, 0xca, + 0x6b, 0x48, 0x3f, 0xbd, 0x3f, 0x37, 0x0e, 0x6b, 0x8c, 0x71, 0xe5, 0x7a, 0xbb, 0x8c, 0x12, 0x39, + 0x39, 0x0a, 0x7c, 0x07, 0x3c, 0x6b, 0x08, 0xac, 0xd1, 0x39, 0x36, 0xfe, 0xcd, 0x35, 0x58, 0x91, + 0x25, 0x71, 0x07, 0xa4, 0x9c, 0x16, 0x79, 0x18, 0x15, 0x34, 0x56, 0x45, 0x0d, 0xe9, 0x0d, 0x72, + 0x04, 0x58, 0x05, 0x61, 0x99, 0x87, 0xeb, 0x42, 0xad, 0x6b, 0x48, 0x6f, 0xf6, 0x38, 0x15, 0x91, + 0x0a, 0x74, 0x33, 0xe0, 0xd9, 0x8b, 0x37, 0x70, 0xe5, 0x3b, 0xaf, 0x8e, 0x3b, 0x73, 0x02, 0x6b, + 0xec, 0xbe, 0xd8, 0x01, 0xb1, 0xcc, 0x67, 0xcf, 0x76, 0x9d, 0xc0, 0x9b, 0x4f, 0x2c, 0xe5, 0x04, + 0x37, 0x80, 0x1f, 0xb9, 0x6f, 0x96, 0x82, 0x70, 0x0b, 0x24, 0x6f, 0xe8, 0x8f, 0x7b, 0xd3, 0xc0, + 0x9f, 0x28, 0x1c, 0x3e, 0x03, 0x79, 0x2f, 0xfb, 0xee, 0xcc, 0x51, 0x6a, 0x58, 0x02, 0x61, 0x64, + 0xfa, 0x83, 0xa1, 0xc2, 0xe3, 0x3a, 0xd4, 0xa6, 0x66, 0x5f, 0x11, 0x4a, 0x66, 0x3a, 0x03, 0x32, + 0x57, 0xc4, 0x5e, 0xeb, 0x5d, 0x36, 0x6e, 0x9f, 0x0e, 0x3f, 0x5a, 0x88, 0xec, 0xf6, 0xf0, 0x17, + 0x00, 0x00, 0xff, 0xff, 0x9a, 0x6c, 0xc6, 0xc0, 0xba, 0x01, 0x00, 0x00, } diff --git a/protocol/protobuf/enums.pb.go b/protocol/protobuf/enums.pb.go index 3db853ace..381da3565 100644 --- a/protocol/protobuf/enums.pb.go +++ b/protocol/protobuf/enums.pb.go @@ -1,24 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: enums.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type MessageType int32 @@ -34,53 +34,32 @@ const ( MessageType_SYSTEM_MESSAGE_GAP MessageType = 6 ) -// Enum value maps for MessageType. -var ( - MessageType_name = map[int32]string{ - 0: "UNKNOWN_MESSAGE_TYPE", - 1: "ONE_TO_ONE", - 2: "PUBLIC_GROUP", - 3: "PRIVATE_GROUP", - 4: "SYSTEM_MESSAGE_PRIVATE_GROUP", - 5: "COMMUNITY_CHAT", - 6: "SYSTEM_MESSAGE_GAP", - } - MessageType_value = map[string]int32{ - "UNKNOWN_MESSAGE_TYPE": 0, - "ONE_TO_ONE": 1, - "PUBLIC_GROUP": 2, - "PRIVATE_GROUP": 3, - "SYSTEM_MESSAGE_PRIVATE_GROUP": 4, - "COMMUNITY_CHAT": 5, - "SYSTEM_MESSAGE_GAP": 6, - } -) +var MessageType_name = map[int32]string{ + 0: "UNKNOWN_MESSAGE_TYPE", + 1: "ONE_TO_ONE", + 2: "PUBLIC_GROUP", + 3: "PRIVATE_GROUP", + 4: "SYSTEM_MESSAGE_PRIVATE_GROUP", + 5: "COMMUNITY_CHAT", + 6: "SYSTEM_MESSAGE_GAP", +} -func (x MessageType) Enum() *MessageType { - p := new(MessageType) - *p = x - return p +var MessageType_value = map[string]int32{ + "UNKNOWN_MESSAGE_TYPE": 0, + "ONE_TO_ONE": 1, + "PUBLIC_GROUP": 2, + "PRIVATE_GROUP": 3, + "SYSTEM_MESSAGE_PRIVATE_GROUP": 4, + "COMMUNITY_CHAT": 5, + "SYSTEM_MESSAGE_GAP": 6, } func (x MessageType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(MessageType_name, int32(x)) } -func (MessageType) Descriptor() protoreflect.EnumDescriptor { - return file_enums_proto_enumTypes[0].Descriptor() -} - -func (MessageType) Type() protoreflect.EnumType { - return &file_enums_proto_enumTypes[0] -} - -func (x MessageType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MessageType.Descriptor instead. func (MessageType) EnumDescriptor() ([]byte, []int) { - return file_enums_proto_rawDescGZIP(), []int{0} + return fileDescriptor_888b6bd9597961ff, []int{0} } type ImageFormat int32 @@ -94,49 +73,28 @@ const ( ImageFormat_GIF ImageFormat = 4 ) -// Enum value maps for ImageFormat. -var ( - ImageFormat_name = map[int32]string{ - 0: "UNKNOWN_IMAGE_FORMAT", - 1: "PNG", - 2: "JPEG", - 3: "WEBP", - 4: "GIF", - } - ImageFormat_value = map[string]int32{ - "UNKNOWN_IMAGE_FORMAT": 0, - "PNG": 1, - "JPEG": 2, - "WEBP": 3, - "GIF": 4, - } -) +var ImageFormat_name = map[int32]string{ + 0: "UNKNOWN_IMAGE_FORMAT", + 1: "PNG", + 2: "JPEG", + 3: "WEBP", + 4: "GIF", +} -func (x ImageFormat) Enum() *ImageFormat { - p := new(ImageFormat) - *p = x - return p +var ImageFormat_value = map[string]int32{ + "UNKNOWN_IMAGE_FORMAT": 0, + "PNG": 1, + "JPEG": 2, + "WEBP": 3, + "GIF": 4, } func (x ImageFormat) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(ImageFormat_name, int32(x)) } -func (ImageFormat) Descriptor() protoreflect.EnumDescriptor { - return file_enums_proto_enumTypes[1].Descriptor() -} - -func (ImageFormat) Type() protoreflect.EnumType { - return &file_enums_proto_enumTypes[1] -} - -func (x ImageFormat) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ImageFormat.Descriptor instead. func (ImageFormat) EnumDescriptor() ([]byte, []int) { - return file_enums_proto_rawDescGZIP(), []int{1} + return fileDescriptor_888b6bd9597961ff, []int{1} } type CommunityTokenType int32 @@ -148,125 +106,57 @@ const ( CommunityTokenType_ENS CommunityTokenType = 3 ) -// Enum value maps for CommunityTokenType. -var ( - CommunityTokenType_name = map[int32]string{ - 0: "UNKNOWN_TOKEN_TYPE", - 1: "ERC20", - 2: "ERC721", - 3: "ENS", - } - CommunityTokenType_value = map[string]int32{ - "UNKNOWN_TOKEN_TYPE": 0, - "ERC20": 1, - "ERC721": 2, - "ENS": 3, - } -) +var CommunityTokenType_name = map[int32]string{ + 0: "UNKNOWN_TOKEN_TYPE", + 1: "ERC20", + 2: "ERC721", + 3: "ENS", +} -func (x CommunityTokenType) Enum() *CommunityTokenType { - p := new(CommunityTokenType) - *p = x - return p +var CommunityTokenType_value = map[string]int32{ + "UNKNOWN_TOKEN_TYPE": 0, + "ERC20": 1, + "ERC721": 2, + "ENS": 3, } func (x CommunityTokenType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(CommunityTokenType_name, int32(x)) } -func (CommunityTokenType) Descriptor() protoreflect.EnumDescriptor { - return file_enums_proto_enumTypes[2].Descriptor() -} - -func (CommunityTokenType) Type() protoreflect.EnumType { - return &file_enums_proto_enumTypes[2] -} - -func (x CommunityTokenType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use CommunityTokenType.Descriptor instead. func (CommunityTokenType) EnumDescriptor() ([]byte, []int) { - return file_enums_proto_rawDescGZIP(), []int{2} + return fileDescriptor_888b6bd9597961ff, []int{2} } -var File_enums_proto protoreflect.FileDescriptor - -var file_enums_proto_rawDesc = []byte{ - 0x0a, 0x0b, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2a, 0xaa, 0x01, 0x0a, 0x0b, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, - 0x57, 0x4e, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, - 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x4e, 0x45, 0x5f, 0x54, 0x4f, 0x5f, 0x4f, 0x4e, 0x45, 0x10, - 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x47, 0x52, 0x4f, 0x55, - 0x50, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x5f, 0x47, - 0x52, 0x4f, 0x55, 0x50, 0x10, 0x03, 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, - 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, - 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4f, 0x4d, 0x4d, - 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x48, 0x41, 0x54, 0x10, 0x05, 0x12, 0x16, 0x0a, 0x12, - 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x47, - 0x41, 0x50, 0x10, 0x06, 0x2a, 0x4d, 0x0a, 0x0b, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x46, 0x6f, 0x72, - 0x6d, 0x61, 0x74, 0x12, 0x18, 0x0a, 0x14, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x49, - 0x4d, 0x41, 0x47, 0x45, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x10, 0x00, 0x12, 0x07, 0x0a, - 0x03, 0x50, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x50, 0x45, 0x47, 0x10, 0x02, - 0x12, 0x08, 0x0a, 0x04, 0x57, 0x45, 0x42, 0x50, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x49, - 0x46, 0x10, 0x04, 0x2a, 0x4c, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x4e, 0x4b, - 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, - 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x43, 0x32, 0x30, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, - 0x45, 0x52, 0x43, 0x37, 0x32, 0x31, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x45, 0x4e, 0x53, 0x10, - 0x03, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterEnum("protobuf.MessageType", MessageType_name, MessageType_value) + proto.RegisterEnum("protobuf.ImageFormat", ImageFormat_name, ImageFormat_value) + proto.RegisterEnum("protobuf.CommunityTokenType", CommunityTokenType_name, CommunityTokenType_value) } -var ( - file_enums_proto_rawDescOnce sync.Once - file_enums_proto_rawDescData = file_enums_proto_rawDesc -) - -func file_enums_proto_rawDescGZIP() []byte { - file_enums_proto_rawDescOnce.Do(func() { - file_enums_proto_rawDescData = protoimpl.X.CompressGZIP(file_enums_proto_rawDescData) - }) - return file_enums_proto_rawDescData +func init() { + proto.RegisterFile("enums.proto", fileDescriptor_888b6bd9597961ff) } -var file_enums_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_enums_proto_goTypes = []interface{}{ - (MessageType)(0), // 0: protobuf.MessageType - (ImageFormat)(0), // 1: protobuf.ImageFormat - (CommunityTokenType)(0), // 2: protobuf.CommunityTokenType -} -var file_enums_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_enums_proto_init() } -func file_enums_proto_init() { - if File_enums_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_enums_proto_rawDesc, - NumEnums: 3, - NumMessages: 0, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_enums_proto_goTypes, - DependencyIndexes: file_enums_proto_depIdxs, - EnumInfos: file_enums_proto_enumTypes, - }.Build() - File_enums_proto = out.File - file_enums_proto_rawDesc = nil - file_enums_proto_goTypes = nil - file_enums_proto_depIdxs = nil +var fileDescriptor_888b6bd9597961ff = []byte{ + // 302 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0x4b, 0x4f, 0xfa, 0x50, + 0x10, 0xc5, 0x29, 0xe5, 0xf5, 0x9f, 0xfe, 0x21, 0xe3, 0xc4, 0x10, 0x17, 0x2e, 0x5c, 0xb3, 0x40, + 0xc5, 0x85, 0x0b, 0x57, 0xa5, 0x19, 0x6a, 0x85, 0xfb, 0x48, 0x7b, 0x2b, 0xc1, 0x4d, 0x03, 0xc9, + 0x95, 0x18, 0x53, 0x4a, 0x78, 0x2c, 0xf8, 0x4a, 0x7e, 0x4a, 0x53, 0x22, 0x46, 0x5d, 0xcd, 0xc9, + 0xe4, 0xcc, 0x2f, 0x67, 0x0e, 0x78, 0x76, 0xb5, 0xcf, 0xb7, 0xfd, 0xf5, 0xa6, 0xd8, 0x15, 0xd4, + 0x3a, 0x8e, 0xc5, 0xfe, 0xb5, 0xf7, 0xe1, 0x80, 0x27, 0xec, 0x76, 0x3b, 0x5f, 0x5a, 0x73, 0x58, + 0x5b, 0xba, 0x80, 0xf3, 0x54, 0x8e, 0xa5, 0x9a, 0xca, 0x4c, 0x70, 0x92, 0xf8, 0x21, 0x67, 0x66, + 0xa6, 0x19, 0x2b, 0xd4, 0x01, 0x50, 0x92, 0x33, 0xa3, 0x32, 0x25, 0x19, 0x1d, 0x42, 0xf8, 0xaf, + 0xd3, 0xe1, 0x24, 0x0a, 0xb2, 0x30, 0x56, 0xa9, 0xc6, 0x2a, 0x9d, 0x41, 0x5b, 0xc7, 0xd1, 0xb3, + 0x6f, 0xf8, 0x6b, 0xe5, 0xd2, 0x15, 0x5c, 0x26, 0xb3, 0xc4, 0xb0, 0xf8, 0xa6, 0xfd, 0x76, 0xd4, + 0x88, 0xa0, 0x13, 0x28, 0x21, 0x52, 0x19, 0x99, 0x59, 0x16, 0x3c, 0xfa, 0x06, 0xeb, 0xd4, 0x05, + 0xfa, 0x73, 0x15, 0xfa, 0x1a, 0x1b, 0x3d, 0x01, 0x5e, 0x94, 0xcf, 0x97, 0x76, 0x54, 0x6c, 0xf2, + 0xf9, 0xee, 0x67, 0xd6, 0x48, 0x94, 0xae, 0x91, 0x8a, 0x85, 0x6f, 0xb0, 0x42, 0x4d, 0x70, 0xb5, + 0x0c, 0xd1, 0xa1, 0x16, 0xd4, 0x9e, 0x34, 0x87, 0x58, 0x2d, 0xd5, 0x94, 0x87, 0x65, 0xa6, 0x26, + 0xb8, 0x61, 0x34, 0xc2, 0x5a, 0x6f, 0x02, 0x14, 0x14, 0x79, 0xbe, 0x5f, 0xbd, 0xed, 0x0e, 0xa6, + 0x78, 0xb7, 0xab, 0x63, 0x03, 0x5d, 0xa0, 0x13, 0xd5, 0xa8, 0x31, 0xcb, 0xd3, 0xff, 0xff, 0xa0, + 0xce, 0x71, 0x30, 0xb8, 0x41, 0x87, 0x00, 0x1a, 0x1c, 0x07, 0xf7, 0x83, 0x5b, 0xac, 0x96, 0x34, + 0x96, 0x09, 0xba, 0xc3, 0xf6, 0x8b, 0xd7, 0xbf, 0x7e, 0x38, 0x15, 0xbb, 0x68, 0x1c, 0xd5, 0xdd, + 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa8, 0x34, 0x70, 0xdb, 0x78, 0x01, 0x00, 0x00, } diff --git a/protocol/protobuf/group_chat_invitation.pb.go b/protocol/protobuf/group_chat_invitation.pb.go index ed1a98a2d..fffce089d 100644 --- a/protocol/protobuf/group_chat_invitation.pb.go +++ b/protocol/protobuf/group_chat_invitation.pb.go @@ -1,24 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: group_chat_invitation.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type GroupChatInvitation_State int32 @@ -29,54 +29,29 @@ const ( GroupChatInvitation_APPROVED GroupChatInvitation_State = 3 ) -// Enum value maps for GroupChatInvitation_State. -var ( - GroupChatInvitation_State_name = map[int32]string{ - 0: "UNKNOWN", - 1: "REQUEST", - 2: "REJECTED", - 3: "APPROVED", - } - GroupChatInvitation_State_value = map[string]int32{ - "UNKNOWN": 0, - "REQUEST": 1, - "REJECTED": 2, - "APPROVED": 3, - } -) +var GroupChatInvitation_State_name = map[int32]string{ + 0: "UNKNOWN", + 1: "REQUEST", + 2: "REJECTED", + 3: "APPROVED", +} -func (x GroupChatInvitation_State) Enum() *GroupChatInvitation_State { - p := new(GroupChatInvitation_State) - *p = x - return p +var GroupChatInvitation_State_value = map[string]int32{ + "UNKNOWN": 0, + "REQUEST": 1, + "REJECTED": 2, + "APPROVED": 3, } func (x GroupChatInvitation_State) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(GroupChatInvitation_State_name, int32(x)) } -func (GroupChatInvitation_State) Descriptor() protoreflect.EnumDescriptor { - return file_group_chat_invitation_proto_enumTypes[0].Descriptor() -} - -func (GroupChatInvitation_State) Type() protoreflect.EnumType { - return &file_group_chat_invitation_proto_enumTypes[0] -} - -func (x GroupChatInvitation_State) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use GroupChatInvitation_State.Descriptor instead. func (GroupChatInvitation_State) EnumDescriptor() ([]byte, []int) { - return file_group_chat_invitation_proto_rawDescGZIP(), []int{0, 0} + return fileDescriptor_a6a73333de6a8ebe, []int{0, 0} } type GroupChatInvitation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // clock Lamport timestamp of the chat message Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` // chat_id the ID of the private group chat the message belongs to, for query efficiency the chat_id is stored in the db even though the @@ -84,157 +59,90 @@ type GroupChatInvitation struct { ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` IntroductionMessage string `protobuf:"bytes,3,opt,name=introduction_message,json=introductionMessage,proto3" json:"introduction_message,omitempty"` // state of invitation - State GroupChatInvitation_State `protobuf:"varint,4,opt,name=state,proto3,enum=protobuf.GroupChatInvitation_State" json:"state,omitempty"` + State GroupChatInvitation_State `protobuf:"varint,4,opt,name=state,proto3,enum=protobuf.GroupChatInvitation_State" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GroupChatInvitation) Reset() { - *x = GroupChatInvitation{} - if protoimpl.UnsafeEnabled { - mi := &file_group_chat_invitation_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GroupChatInvitation) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GroupChatInvitation) ProtoMessage() {} - -func (x *GroupChatInvitation) ProtoReflect() protoreflect.Message { - mi := &file_group_chat_invitation_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GroupChatInvitation.ProtoReflect.Descriptor instead. +func (m *GroupChatInvitation) Reset() { *m = GroupChatInvitation{} } +func (m *GroupChatInvitation) String() string { return proto.CompactTextString(m) } +func (*GroupChatInvitation) ProtoMessage() {} func (*GroupChatInvitation) Descriptor() ([]byte, []int) { - return file_group_chat_invitation_proto_rawDescGZIP(), []int{0} + return fileDescriptor_a6a73333de6a8ebe, []int{0} } -func (x *GroupChatInvitation) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *GroupChatInvitation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GroupChatInvitation.Unmarshal(m, b) +} +func (m *GroupChatInvitation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GroupChatInvitation.Marshal(b, m, deterministic) +} +func (m *GroupChatInvitation) XXX_Merge(src proto.Message) { + xxx_messageInfo_GroupChatInvitation.Merge(m, src) +} +func (m *GroupChatInvitation) XXX_Size() int { + return xxx_messageInfo_GroupChatInvitation.Size(m) +} +func (m *GroupChatInvitation) XXX_DiscardUnknown() { + xxx_messageInfo_GroupChatInvitation.DiscardUnknown(m) +} + +var xxx_messageInfo_GroupChatInvitation proto.InternalMessageInfo + +func (m *GroupChatInvitation) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *GroupChatInvitation) GetChatId() string { - if x != nil { - return x.ChatId +func (m *GroupChatInvitation) GetChatId() string { + if m != nil { + return m.ChatId } return "" } -func (x *GroupChatInvitation) GetIntroductionMessage() string { - if x != nil { - return x.IntroductionMessage +func (m *GroupChatInvitation) GetIntroductionMessage() string { + if m != nil { + return m.IntroductionMessage } return "" } -func (x *GroupChatInvitation) GetState() GroupChatInvitation_State { - if x != nil { - return x.State +func (m *GroupChatInvitation) GetState() GroupChatInvitation_State { + if m != nil { + return m.State } return GroupChatInvitation_UNKNOWN } -var File_group_chat_invitation_proto protoreflect.FileDescriptor - -var file_group_chat_invitation_proto_rawDesc = []byte{ - 0x0a, 0x1b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x6e, 0x76, - 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0xf1, 0x01, 0x0a, 0x13, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x43, 0x68, 0x61, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, - 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12, 0x31, - 0x0a, 0x14, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x69, 0x6e, - 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x12, 0x39, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x43, 0x68, 0x61, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x3d, 0x0a, 0x05, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, - 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, 0x01, 0x12, - 0x0c, 0x0a, 0x08, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0c, 0x0a, - 0x08, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x03, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, - 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, +func init() { + proto.RegisterEnum("protobuf.GroupChatInvitation_State", GroupChatInvitation_State_name, GroupChatInvitation_State_value) + proto.RegisterType((*GroupChatInvitation)(nil), "protobuf.GroupChatInvitation") } -var ( - file_group_chat_invitation_proto_rawDescOnce sync.Once - file_group_chat_invitation_proto_rawDescData = file_group_chat_invitation_proto_rawDesc -) - -func file_group_chat_invitation_proto_rawDescGZIP() []byte { - file_group_chat_invitation_proto_rawDescOnce.Do(func() { - file_group_chat_invitation_proto_rawDescData = protoimpl.X.CompressGZIP(file_group_chat_invitation_proto_rawDescData) - }) - return file_group_chat_invitation_proto_rawDescData +func init() { + proto.RegisterFile("group_chat_invitation.proto", fileDescriptor_a6a73333de6a8ebe) } -var file_group_chat_invitation_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_group_chat_invitation_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_group_chat_invitation_proto_goTypes = []interface{}{ - (GroupChatInvitation_State)(0), // 0: protobuf.GroupChatInvitation.State - (*GroupChatInvitation)(nil), // 1: protobuf.GroupChatInvitation -} -var file_group_chat_invitation_proto_depIdxs = []int32{ - 0, // 0: protobuf.GroupChatInvitation.state:type_name -> protobuf.GroupChatInvitation.State - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_group_chat_invitation_proto_init() } -func file_group_chat_invitation_proto_init() { - if File_group_chat_invitation_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_group_chat_invitation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GroupChatInvitation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_group_chat_invitation_proto_rawDesc, - NumEnums: 1, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_group_chat_invitation_proto_goTypes, - DependencyIndexes: file_group_chat_invitation_proto_depIdxs, - EnumInfos: file_group_chat_invitation_proto_enumTypes, - MessageInfos: file_group_chat_invitation_proto_msgTypes, - }.Build() - File_group_chat_invitation_proto = out.File - file_group_chat_invitation_proto_rawDesc = nil - file_group_chat_invitation_proto_goTypes = nil - file_group_chat_invitation_proto_depIdxs = nil +var fileDescriptor_a6a73333de6a8ebe = []byte{ + // 243 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4e, 0x2f, 0xca, 0x2f, + 0x2d, 0x88, 0x4f, 0xce, 0x48, 0x2c, 0x89, 0xcf, 0xcc, 0x2b, 0xcb, 0x2c, 0x49, 0x2c, 0xc9, 0xcc, + 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x00, 0x53, 0x49, 0xa5, 0x69, 0x4a, 0x1f, + 0x19, 0xb9, 0x84, 0xdd, 0x41, 0x2a, 0x9d, 0x33, 0x12, 0x4b, 0x3c, 0xe1, 0xea, 0x84, 0x44, 0xb8, + 0x58, 0x93, 0x73, 0xf2, 0x93, 0xb3, 0x25, 0x18, 0x15, 0x18, 0x35, 0x58, 0x82, 0x20, 0x1c, 0x21, + 0x71, 0x2e, 0x76, 0x88, 0x81, 0x29, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x6c, 0x20, 0xae, + 0x67, 0x8a, 0x90, 0x21, 0x97, 0x48, 0x66, 0x5e, 0x49, 0x51, 0x7e, 0x4a, 0x69, 0x32, 0x48, 0x7b, + 0x7c, 0x6e, 0x6a, 0x71, 0x71, 0x62, 0x7a, 0xaa, 0x04, 0x33, 0x58, 0x95, 0x30, 0xb2, 0x9c, 0x2f, + 0x44, 0x4a, 0xc8, 0x92, 0x8b, 0xb5, 0xb8, 0x24, 0xb1, 0x24, 0x55, 0x82, 0x45, 0x81, 0x51, 0x83, + 0xcf, 0x48, 0x59, 0x0f, 0xe6, 0x26, 0x3d, 0x2c, 0xee, 0xd1, 0x0b, 0x06, 0x29, 0x0d, 0x82, 0xe8, + 0x50, 0xb2, 0xe5, 0x62, 0x05, 0xf3, 0x85, 0xb8, 0xb9, 0xd8, 0x43, 0xfd, 0xbc, 0xfd, 0xfc, 0xc3, + 0xfd, 0x04, 0x18, 0x40, 0x9c, 0x20, 0xd7, 0xc0, 0x50, 0xd7, 0xe0, 0x10, 0x01, 0x46, 0x21, 0x1e, + 0x2e, 0x8e, 0x20, 0x57, 0x2f, 0x57, 0xe7, 0x10, 0x57, 0x17, 0x01, 0x26, 0x10, 0xcf, 0x31, 0x20, + 0x20, 0xc8, 0x3f, 0xcc, 0xd5, 0x45, 0x80, 0xd9, 0x89, 0x37, 0x8a, 0x5b, 0x4f, 0xdf, 0x1a, 0x66, + 0x5d, 0x12, 0x1b, 0x98, 0x65, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x1b, 0x4c, 0x19, 0xcd, 0x32, + 0x01, 0x00, 0x00, } diff --git a/protocol/protobuf/membership_update_message.pb.go b/protocol/protobuf/membership_update_message.pb.go index 27cd0a0ba..f49cfcd0e 100644 --- a/protocol/protobuf/membership_update_message.pb.go +++ b/protocol/protobuf/membership_update_message.pb.go @@ -1,24 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: membership_update_message.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type MembershipUpdateEvent_EventType int32 @@ -35,66 +35,41 @@ const ( MembershipUpdateEvent_IMAGE_CHANGED MembershipUpdateEvent_EventType = 9 ) -// Enum value maps for MembershipUpdateEvent_EventType. -var ( - MembershipUpdateEvent_EventType_name = map[int32]string{ - 0: "UNKNOWN", - 1: "CHAT_CREATED", - 2: "NAME_CHANGED", - 3: "MEMBERS_ADDED", - 4: "MEMBER_JOINED", - 5: "MEMBER_REMOVED", - 6: "ADMINS_ADDED", - 7: "ADMIN_REMOVED", - 8: "COLOR_CHANGED", - 9: "IMAGE_CHANGED", - } - MembershipUpdateEvent_EventType_value = map[string]int32{ - "UNKNOWN": 0, - "CHAT_CREATED": 1, - "NAME_CHANGED": 2, - "MEMBERS_ADDED": 3, - "MEMBER_JOINED": 4, - "MEMBER_REMOVED": 5, - "ADMINS_ADDED": 6, - "ADMIN_REMOVED": 7, - "COLOR_CHANGED": 8, - "IMAGE_CHANGED": 9, - } -) +var MembershipUpdateEvent_EventType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "CHAT_CREATED", + 2: "NAME_CHANGED", + 3: "MEMBERS_ADDED", + 4: "MEMBER_JOINED", + 5: "MEMBER_REMOVED", + 6: "ADMINS_ADDED", + 7: "ADMIN_REMOVED", + 8: "COLOR_CHANGED", + 9: "IMAGE_CHANGED", +} -func (x MembershipUpdateEvent_EventType) Enum() *MembershipUpdateEvent_EventType { - p := new(MembershipUpdateEvent_EventType) - *p = x - return p +var MembershipUpdateEvent_EventType_value = map[string]int32{ + "UNKNOWN": 0, + "CHAT_CREATED": 1, + "NAME_CHANGED": 2, + "MEMBERS_ADDED": 3, + "MEMBER_JOINED": 4, + "MEMBER_REMOVED": 5, + "ADMINS_ADDED": 6, + "ADMIN_REMOVED": 7, + "COLOR_CHANGED": 8, + "IMAGE_CHANGED": 9, } func (x MembershipUpdateEvent_EventType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(MembershipUpdateEvent_EventType_name, int32(x)) } -func (MembershipUpdateEvent_EventType) Descriptor() protoreflect.EnumDescriptor { - return file_membership_update_message_proto_enumTypes[0].Descriptor() -} - -func (MembershipUpdateEvent_EventType) Type() protoreflect.EnumType { - return &file_membership_update_message_proto_enumTypes[0] -} - -func (x MembershipUpdateEvent_EventType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MembershipUpdateEvent_EventType.Descriptor instead. func (MembershipUpdateEvent_EventType) EnumDescriptor() ([]byte, []int) { - return file_membership_update_message_proto_rawDescGZIP(), []int{0, 0} + return fileDescriptor_8d37dd0dc857a6be, []int{0, 0} } type MembershipUpdateEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Lamport timestamp of the event Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` // List of public keys of objects of the action @@ -106,79 +81,75 @@ type MembershipUpdateEvent struct { // Color of the chat for the CHAT_CREATED/COLOR_CHANGED event types Color string `protobuf:"bytes,5,opt,name=color,proto3" json:"color,omitempty"` // Chat image - Image []byte `protobuf:"bytes,6,opt,name=image,proto3" json:"image,omitempty"` + Image []byte `protobuf:"bytes,6,opt,name=image,proto3" json:"image,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *MembershipUpdateEvent) Reset() { - *x = MembershipUpdateEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_membership_update_message_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MembershipUpdateEvent) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MembershipUpdateEvent) ProtoMessage() {} - -func (x *MembershipUpdateEvent) ProtoReflect() protoreflect.Message { - mi := &file_membership_update_message_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MembershipUpdateEvent.ProtoReflect.Descriptor instead. +func (m *MembershipUpdateEvent) Reset() { *m = MembershipUpdateEvent{} } +func (m *MembershipUpdateEvent) String() string { return proto.CompactTextString(m) } +func (*MembershipUpdateEvent) ProtoMessage() {} func (*MembershipUpdateEvent) Descriptor() ([]byte, []int) { - return file_membership_update_message_proto_rawDescGZIP(), []int{0} + return fileDescriptor_8d37dd0dc857a6be, []int{0} } -func (x *MembershipUpdateEvent) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *MembershipUpdateEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MembershipUpdateEvent.Unmarshal(m, b) +} +func (m *MembershipUpdateEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MembershipUpdateEvent.Marshal(b, m, deterministic) +} +func (m *MembershipUpdateEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_MembershipUpdateEvent.Merge(m, src) +} +func (m *MembershipUpdateEvent) XXX_Size() int { + return xxx_messageInfo_MembershipUpdateEvent.Size(m) +} +func (m *MembershipUpdateEvent) XXX_DiscardUnknown() { + xxx_messageInfo_MembershipUpdateEvent.DiscardUnknown(m) +} + +var xxx_messageInfo_MembershipUpdateEvent proto.InternalMessageInfo + +func (m *MembershipUpdateEvent) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *MembershipUpdateEvent) GetMembers() []string { - if x != nil { - return x.Members +func (m *MembershipUpdateEvent) GetMembers() []string { + if m != nil { + return m.Members } return nil } -func (x *MembershipUpdateEvent) GetName() string { - if x != nil { - return x.Name +func (m *MembershipUpdateEvent) GetName() string { + if m != nil { + return m.Name } return "" } -func (x *MembershipUpdateEvent) GetType() MembershipUpdateEvent_EventType { - if x != nil { - return x.Type +func (m *MembershipUpdateEvent) GetType() MembershipUpdateEvent_EventType { + if m != nil { + return m.Type } return MembershipUpdateEvent_UNKNOWN } -func (x *MembershipUpdateEvent) GetColor() string { - if x != nil { - return x.Color +func (m *MembershipUpdateEvent) GetColor() string { + if m != nil { + return m.Color } return "" } -func (x *MembershipUpdateEvent) GetImage() []byte { - if x != nil { - return x.Image +func (m *MembershipUpdateEvent) GetImage() []byte { + if m != nil { + return m.Image } return nil } @@ -187,10 +158,6 @@ func (x *MembershipUpdateEvent) GetImage() []byte { // about group membership changes. // For more information, see https://github.com/status-im/specs/blob/master/status-group-chats-spec.md. type MembershipUpdateMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // The chat id of the private group chat ChatId string `protobuf:"bytes,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` // A list of events for this group chat, first x bytes are the signature, then is a @@ -198,76 +165,51 @@ type MembershipUpdateMessage struct { Events [][]byte `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` // An optional chat message // - // Types that are assignable to ChatEntity: + // Types that are valid to be assigned to ChatEntity: // // *MembershipUpdateMessage_Message // *MembershipUpdateMessage_EmojiReaction - ChatEntity isMembershipUpdateMessage_ChatEntity `protobuf_oneof:"chat_entity"` + ChatEntity isMembershipUpdateMessage_ChatEntity `protobuf_oneof:"chat_entity"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *MembershipUpdateMessage) Reset() { - *x = MembershipUpdateMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_membership_update_message_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MembershipUpdateMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MembershipUpdateMessage) ProtoMessage() {} - -func (x *MembershipUpdateMessage) ProtoReflect() protoreflect.Message { - mi := &file_membership_update_message_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MembershipUpdateMessage.ProtoReflect.Descriptor instead. +func (m *MembershipUpdateMessage) Reset() { *m = MembershipUpdateMessage{} } +func (m *MembershipUpdateMessage) String() string { return proto.CompactTextString(m) } +func (*MembershipUpdateMessage) ProtoMessage() {} func (*MembershipUpdateMessage) Descriptor() ([]byte, []int) { - return file_membership_update_message_proto_rawDescGZIP(), []int{1} + return fileDescriptor_8d37dd0dc857a6be, []int{1} } -func (x *MembershipUpdateMessage) GetChatId() string { - if x != nil { - return x.ChatId +func (m *MembershipUpdateMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MembershipUpdateMessage.Unmarshal(m, b) +} +func (m *MembershipUpdateMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MembershipUpdateMessage.Marshal(b, m, deterministic) +} +func (m *MembershipUpdateMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_MembershipUpdateMessage.Merge(m, src) +} +func (m *MembershipUpdateMessage) XXX_Size() int { + return xxx_messageInfo_MembershipUpdateMessage.Size(m) +} +func (m *MembershipUpdateMessage) XXX_DiscardUnknown() { + xxx_messageInfo_MembershipUpdateMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_MembershipUpdateMessage proto.InternalMessageInfo + +func (m *MembershipUpdateMessage) GetChatId() string { + if m != nil { + return m.ChatId } return "" } -func (x *MembershipUpdateMessage) GetEvents() [][]byte { - if x != nil { - return x.Events - } - return nil -} - -func (m *MembershipUpdateMessage) GetChatEntity() isMembershipUpdateMessage_ChatEntity { +func (m *MembershipUpdateMessage) GetEvents() [][]byte { if m != nil { - return m.ChatEntity - } - return nil -} - -func (x *MembershipUpdateMessage) GetMessage() *ChatMessage { - if x, ok := x.GetChatEntity().(*MembershipUpdateMessage_Message); ok { - return x.Message - } - return nil -} - -func (x *MembershipUpdateMessage) GetEmojiReaction() *EmojiReaction { - if x, ok := x.GetChatEntity().(*MembershipUpdateMessage_EmojiReaction); ok { - return x.EmojiReaction + return m.Events } return nil } @@ -288,142 +230,73 @@ func (*MembershipUpdateMessage_Message) isMembershipUpdateMessage_ChatEntity() { func (*MembershipUpdateMessage_EmojiReaction) isMembershipUpdateMessage_ChatEntity() {} -var File_membership_update_message_proto protoreflect.FileDescriptor - -var file_membership_update_message_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x5f, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x12, 0x63, 0x68, 0x61, - 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x14, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x5f, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8a, 0x03, 0x0a, 0x15, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x73, 0x68, 0x69, 0x70, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, - 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, - 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x29, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x22, 0xc1, - 0x01, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, - 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x48, 0x41, - 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x4e, - 0x41, 0x4d, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x44, 0x10, 0x02, 0x12, 0x11, 0x0a, - 0x0d, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x5f, 0x41, 0x44, 0x44, 0x45, 0x44, 0x10, 0x03, - 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x4a, 0x4f, 0x49, 0x4e, 0x45, - 0x44, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x52, 0x45, - 0x4d, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x05, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x44, 0x4d, 0x49, 0x4e, - 0x53, 0x5f, 0x41, 0x44, 0x44, 0x45, 0x44, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x44, 0x4d, - 0x49, 0x4e, 0x5f, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x07, 0x12, 0x11, 0x0a, 0x0d, - 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x44, 0x10, 0x08, 0x12, - 0x11, 0x0a, 0x0d, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x44, - 0x10, 0x09, 0x22, 0xce, 0x01, 0x0a, 0x17, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, - 0x70, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x17, - 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, - 0x31, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x68, 0x61, 0x74, - 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x12, 0x40, 0x0a, 0x0e, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x5f, 0x72, 0x65, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x6f, 0x6a, 0x69, 0x52, 0x65, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0d, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x52, 0x65, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_membership_update_message_proto_rawDescOnce sync.Once - file_membership_update_message_proto_rawDescData = file_membership_update_message_proto_rawDesc -) - -func file_membership_update_message_proto_rawDescGZIP() []byte { - file_membership_update_message_proto_rawDescOnce.Do(func() { - file_membership_update_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_membership_update_message_proto_rawDescData) - }) - return file_membership_update_message_proto_rawDescData -} - -var file_membership_update_message_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_membership_update_message_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_membership_update_message_proto_goTypes = []interface{}{ - (MembershipUpdateEvent_EventType)(0), // 0: protobuf.MembershipUpdateEvent.EventType - (*MembershipUpdateEvent)(nil), // 1: protobuf.MembershipUpdateEvent - (*MembershipUpdateMessage)(nil), // 2: protobuf.MembershipUpdateMessage - (*ChatMessage)(nil), // 3: protobuf.ChatMessage - (*EmojiReaction)(nil), // 4: protobuf.EmojiReaction -} -var file_membership_update_message_proto_depIdxs = []int32{ - 0, // 0: protobuf.MembershipUpdateEvent.type:type_name -> protobuf.MembershipUpdateEvent.EventType - 3, // 1: protobuf.MembershipUpdateMessage.message:type_name -> protobuf.ChatMessage - 4, // 2: protobuf.MembershipUpdateMessage.emoji_reaction:type_name -> protobuf.EmojiReaction - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_membership_update_message_proto_init() } -func file_membership_update_message_proto_init() { - if File_membership_update_message_proto != nil { - return +func (m *MembershipUpdateMessage) GetChatEntity() isMembershipUpdateMessage_ChatEntity { + if m != nil { + return m.ChatEntity } - file_chat_message_proto_init() - file_emoji_reaction_proto_init() - if !protoimpl.UnsafeEnabled { - file_membership_update_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MembershipUpdateEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_membership_update_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MembershipUpdateMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } + return nil +} + +func (m *MembershipUpdateMessage) GetMessage() *ChatMessage { + if x, ok := m.GetChatEntity().(*MembershipUpdateMessage_Message); ok { + return x.Message } - file_membership_update_message_proto_msgTypes[1].OneofWrappers = []interface{}{ + return nil +} + +func (m *MembershipUpdateMessage) GetEmojiReaction() *EmojiReaction { + if x, ok := m.GetChatEntity().(*MembershipUpdateMessage_EmojiReaction); ok { + return x.EmojiReaction + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*MembershipUpdateMessage) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*MembershipUpdateMessage_Message)(nil), (*MembershipUpdateMessage_EmojiReaction)(nil), } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_membership_update_message_proto_rawDesc, - NumEnums: 1, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_membership_update_message_proto_goTypes, - DependencyIndexes: file_membership_update_message_proto_depIdxs, - EnumInfos: file_membership_update_message_proto_enumTypes, - MessageInfos: file_membership_update_message_proto_msgTypes, - }.Build() - File_membership_update_message_proto = out.File - file_membership_update_message_proto_rawDesc = nil - file_membership_update_message_proto_goTypes = nil - file_membership_update_message_proto_depIdxs = nil +} + +func init() { + proto.RegisterEnum("protobuf.MembershipUpdateEvent_EventType", MembershipUpdateEvent_EventType_name, MembershipUpdateEvent_EventType_value) + proto.RegisterType((*MembershipUpdateEvent)(nil), "protobuf.MembershipUpdateEvent") + proto.RegisterType((*MembershipUpdateMessage)(nil), "protobuf.MembershipUpdateMessage") +} + +func init() { + proto.RegisterFile("membership_update_message.proto", fileDescriptor_8d37dd0dc857a6be) +} + +var fileDescriptor_8d37dd0dc857a6be = []byte{ + // 443 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x52, 0xd1, 0x8e, 0x93, 0x40, + 0x14, 0x2d, 0x5b, 0x4a, 0x97, 0x4b, 0xdb, 0xe0, 0xcd, 0xae, 0x25, 0xfb, 0x22, 0xe9, 0x13, 0xbe, + 0x60, 0xac, 0x8f, 0xc6, 0x44, 0x0a, 0x93, 0x6d, 0x55, 0x20, 0x19, 0xbb, 0x9a, 0xf8, 0x42, 0x68, + 0x3b, 0x6e, 0xd1, 0xa5, 0x90, 0x76, 0xd6, 0xa4, 0xbf, 0xe0, 0x5f, 0xf9, 0x03, 0x7e, 0x93, 0x99, + 0x01, 0x8a, 0x35, 0xbe, 0xc0, 0x9c, 0x73, 0xe7, 0x9c, 0x39, 0xcc, 0x01, 0x9e, 0xe5, 0x2c, 0x5f, + 0xb1, 0xfd, 0x61, 0x9b, 0x95, 0xc9, 0x63, 0xb9, 0x49, 0x39, 0x4b, 0x72, 0x76, 0x38, 0xa4, 0xf7, + 0xcc, 0x2d, 0xf7, 0x05, 0x2f, 0xf0, 0x52, 0xbe, 0x56, 0x8f, 0x5f, 0x6f, 0x70, 0xbd, 0x4d, 0xf9, + 0xf9, 0xf4, 0xe6, 0x8a, 0xe5, 0xc5, 0xb7, 0x2c, 0xd9, 0xb3, 0x74, 0xcd, 0xb3, 0x62, 0x57, 0xb1, + 0x93, 0x9f, 0x5d, 0xb8, 0x0e, 0x4f, 0xbe, 0x77, 0xd2, 0x96, 0xfc, 0x60, 0x3b, 0x8e, 0x57, 0xd0, + 0x5b, 0x3f, 0x14, 0xeb, 0xef, 0x96, 0x62, 0x2b, 0x8e, 0x4a, 0x2b, 0x80, 0x16, 0xf4, 0xeb, 0x18, + 0xd6, 0x85, 0xdd, 0x75, 0x74, 0xda, 0x40, 0x44, 0x50, 0x77, 0x69, 0xce, 0xac, 0xae, 0xad, 0x38, + 0x3a, 0x95, 0x6b, 0x7c, 0x03, 0x2a, 0x3f, 0x96, 0xcc, 0x52, 0x6d, 0xc5, 0x19, 0x4d, 0x9f, 0xbb, + 0x4d, 0x40, 0xf7, 0xbf, 0x47, 0xba, 0xf2, 0xb9, 0x3c, 0x96, 0x8c, 0x4a, 0x99, 0x8c, 0x50, 0x3c, + 0x14, 0x7b, 0xab, 0x27, 0x3d, 0x2b, 0x20, 0xd8, 0x2c, 0x4f, 0xef, 0x99, 0xa5, 0xd9, 0x8a, 0x33, + 0xa0, 0x15, 0x98, 0xfc, 0x52, 0x40, 0x3f, 0xe9, 0xd1, 0x80, 0xfe, 0x5d, 0xf4, 0x3e, 0x8a, 0x3f, + 0x47, 0x66, 0x07, 0x4d, 0x18, 0xf8, 0x73, 0x6f, 0x99, 0xf8, 0x94, 0x78, 0x4b, 0x12, 0x98, 0x8a, + 0x60, 0x22, 0x2f, 0x24, 0x89, 0x3f, 0xf7, 0xa2, 0x5b, 0x12, 0x98, 0x17, 0xf8, 0x04, 0x86, 0x21, + 0x09, 0x67, 0x84, 0x7e, 0x4c, 0xbc, 0x20, 0x20, 0x81, 0xd9, 0x6d, 0xa9, 0xe4, 0x5d, 0xbc, 0x88, + 0x48, 0x60, 0xaa, 0x88, 0x30, 0xaa, 0x29, 0x4a, 0xc2, 0xf8, 0x13, 0x09, 0xcc, 0x9e, 0xf0, 0xf2, + 0x82, 0x70, 0x11, 0x35, 0x42, 0x4d, 0x08, 0x25, 0x73, 0xda, 0xd4, 0x17, 0x94, 0x1f, 0x7f, 0x88, + 0xe9, 0xe9, 0xc4, 0x4b, 0x41, 0x2d, 0x42, 0xef, 0xb6, 0x0d, 0xa1, 0x4f, 0x7e, 0x2b, 0x30, 0xfe, + 0xf7, 0x66, 0xc2, 0xaa, 0x44, 0x1c, 0x43, 0x5f, 0x96, 0x9a, 0x6d, 0x64, 0x21, 0x3a, 0xd5, 0x04, + 0x5c, 0x6c, 0xf0, 0x29, 0x68, 0x4c, 0x7c, 0x77, 0x55, 0xc8, 0x80, 0xd6, 0x08, 0x5f, 0x8a, 0xa6, + 0xa4, 0x56, 0x56, 0x62, 0x4c, 0xaf, 0xdb, 0xeb, 0xf7, 0xb7, 0x29, 0xaf, 0x8d, 0xe7, 0x1d, 0xda, + 0xec, 0xc3, 0xb7, 0x30, 0x3a, 0xff, 0x49, 0x64, 0x71, 0xc6, 0x74, 0xdc, 0x2a, 0x89, 0x98, 0xd3, + 0x7a, 0x3c, 0xef, 0xd0, 0x21, 0xfb, 0x9b, 0x98, 0x0d, 0xc1, 0x90, 0x29, 0xd9, 0x8e, 0x67, 0xfc, + 0x38, 0x1b, 0x7e, 0x31, 0xdc, 0x17, 0xaf, 0x1b, 0xf1, 0x4a, 0x93, 0xab, 0x57, 0x7f, 0x02, 0x00, + 0x00, 0xff, 0xff, 0x1e, 0xc9, 0x99, 0x52, 0xca, 0x02, 0x00, 0x00, } diff --git a/protocol/protobuf/pin_message.pb.go b/protocol/protobuf/pin_message.pb.go index b6c964129..f1267b4bb 100644 --- a/protocol/protobuf/pin_message.pb.go +++ b/protocol/protobuf/pin_message.pb.go @@ -1,187 +1,117 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: pin_message.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type PinMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` MessageId string `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` Pinned bool `protobuf:"varint,4,opt,name=pinned,proto3" json:"pinned,omitempty"` // The type of message (public/one-to-one/private-group-chat) - MessageType MessageType `protobuf:"varint,5,opt,name=message_type,json=messageType,proto3,enum=protobuf.MessageType" json:"message_type,omitempty"` + MessageType MessageType `protobuf:"varint,5,opt,name=message_type,json=messageType,proto3,enum=protobuf.MessageType" json:"message_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *PinMessage) Reset() { - *x = PinMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_pin_message_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PinMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PinMessage) ProtoMessage() {} - -func (x *PinMessage) ProtoReflect() protoreflect.Message { - mi := &file_pin_message_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PinMessage.ProtoReflect.Descriptor instead. +func (m *PinMessage) Reset() { *m = PinMessage{} } +func (m *PinMessage) String() string { return proto.CompactTextString(m) } +func (*PinMessage) ProtoMessage() {} func (*PinMessage) Descriptor() ([]byte, []int) { - return file_pin_message_proto_rawDescGZIP(), []int{0} + return fileDescriptor_b3c2ad1be7128a0a, []int{0} } -func (x *PinMessage) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *PinMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PinMessage.Unmarshal(m, b) +} +func (m *PinMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PinMessage.Marshal(b, m, deterministic) +} +func (m *PinMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_PinMessage.Merge(m, src) +} +func (m *PinMessage) XXX_Size() int { + return xxx_messageInfo_PinMessage.Size(m) +} +func (m *PinMessage) XXX_DiscardUnknown() { + xxx_messageInfo_PinMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_PinMessage proto.InternalMessageInfo + +func (m *PinMessage) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *PinMessage) GetMessageId() string { - if x != nil { - return x.MessageId +func (m *PinMessage) GetMessageId() string { + if m != nil { + return m.MessageId } return "" } -func (x *PinMessage) GetChatId() string { - if x != nil { - return x.ChatId +func (m *PinMessage) GetChatId() string { + if m != nil { + return m.ChatId } return "" } -func (x *PinMessage) GetPinned() bool { - if x != nil { - return x.Pinned +func (m *PinMessage) GetPinned() bool { + if m != nil { + return m.Pinned } return false } -func (x *PinMessage) GetMessageType() MessageType { - if x != nil { - return x.MessageType +func (m *PinMessage) GetMessageType() MessageType { + if m != nil { + return m.MessageType } return MessageType_UNKNOWN_MESSAGE_TYPE } -var File_pin_message_proto protoreflect.FileDescriptor - -var file_pin_message_proto_rawDesc = []byte{ - 0x0a, 0x11, 0x70, 0x69, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x0b, 0x65, - 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xac, 0x01, 0x0a, 0x0a, 0x50, - 0x69, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, - 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, - 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x17, - 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x69, 0x6e, 0x6e, 0x65, - 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x12, - 0x38, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterType((*PinMessage)(nil), "protobuf.PinMessage") } -var ( - file_pin_message_proto_rawDescOnce sync.Once - file_pin_message_proto_rawDescData = file_pin_message_proto_rawDesc -) - -func file_pin_message_proto_rawDescGZIP() []byte { - file_pin_message_proto_rawDescOnce.Do(func() { - file_pin_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_pin_message_proto_rawDescData) - }) - return file_pin_message_proto_rawDescData +func init() { + proto.RegisterFile("pin_message.proto", fileDescriptor_b3c2ad1be7128a0a) } -var file_pin_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_pin_message_proto_goTypes = []interface{}{ - (*PinMessage)(nil), // 0: protobuf.PinMessage - (MessageType)(0), // 1: protobuf.MessageType -} -var file_pin_message_proto_depIdxs = []int32{ - 1, // 0: protobuf.PinMessage.message_type:type_name -> protobuf.MessageType - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_pin_message_proto_init() } -func file_pin_message_proto_init() { - if File_pin_message_proto != nil { - return - } - file_enums_proto_init() - if !protoimpl.UnsafeEnabled { - file_pin_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PinMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pin_message_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_pin_message_proto_goTypes, - DependencyIndexes: file_pin_message_proto_depIdxs, - MessageInfos: file_pin_message_proto_msgTypes, - }.Build() - File_pin_message_proto = out.File - file_pin_message_proto_rawDesc = nil - file_pin_message_proto_goTypes = nil - file_pin_message_proto_depIdxs = nil +var fileDescriptor_b3c2ad1be7128a0a = []byte{ + // 192 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2c, 0xc8, 0xcc, 0x8b, + 0xcf, 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x00, + 0x53, 0x49, 0xa5, 0x69, 0x52, 0xdc, 0xa9, 0x79, 0xa5, 0xb9, 0xc5, 0x10, 0x61, 0xa5, 0x35, 0x8c, + 0x5c, 0x5c, 0x01, 0x99, 0x79, 0xbe, 0x10, 0xb5, 0x42, 0x22, 0x5c, 0xac, 0xc9, 0x39, 0xf9, 0xc9, + 0xd9, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x2c, 0x41, 0x10, 0x8e, 0x90, 0x2c, 0x17, 0x17, 0xd4, 0xb0, + 0xf8, 0xcc, 0x14, 0x09, 0x26, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x4e, 0xa8, 0x88, 0x67, 0x8a, 0x90, + 0x38, 0x17, 0x7b, 0x72, 0x46, 0x62, 0x09, 0x48, 0x8e, 0x19, 0x2c, 0xc7, 0x06, 0xe2, 0x7a, 0xa6, + 0x08, 0x89, 0x71, 0xb1, 0x15, 0x64, 0xe6, 0xe5, 0xa5, 0xa6, 0x48, 0xb0, 0x28, 0x30, 0x6a, 0x70, + 0x04, 0x41, 0x79, 0x42, 0x16, 0x5c, 0x3c, 0x30, 0xf3, 0x4a, 0x2a, 0x0b, 0x52, 0x25, 0x58, 0x15, + 0x18, 0x35, 0xf8, 0x8c, 0x44, 0xf5, 0x60, 0x4e, 0xd4, 0x83, 0x3a, 0x27, 0xa4, 0xb2, 0x20, 0x35, + 0x88, 0x3b, 0x17, 0xc1, 0x71, 0xe2, 0x8d, 0xe2, 0xd6, 0xd3, 0xb7, 0x86, 0xa9, 0x4b, 0x62, 0x03, + 0xb3, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x78, 0x7a, 0xb9, 0x5d, 0xf0, 0x00, 0x00, 0x00, } diff --git a/protocol/protobuf/profile_showcase.pb.go b/protocol/protobuf/profile_showcase.pb.go index 57a521eaa..2e3e581b2 100644 --- a/protocol/protobuf/profile_showcase.pb.go +++ b/protocol/protobuf/profile_showcase.pb.go @@ -1,24 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: profile_showcase.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type ProfileShowcaseVisibility int32 @@ -29,1761 +29,1180 @@ const ( ProfileShowcaseVisibility_PROFILE_SHOWCASE_VISIBILITY_EVERYONE ProfileShowcaseVisibility = 3 ) -// Enum value maps for ProfileShowcaseVisibility. -var ( - ProfileShowcaseVisibility_name = map[int32]string{ - 0: "PROFILE_SHOWCASE_VISIBILITY_NO_ONE", - 1: "PROFILE_SHOWCASE_VISIBILITY_IDVERIFIED_CONTACTS", - 2: "PROFILE_SHOWCASE_VISIBILITY_CONTACTS", - 3: "PROFILE_SHOWCASE_VISIBILITY_EVERYONE", - } - ProfileShowcaseVisibility_value = map[string]int32{ - "PROFILE_SHOWCASE_VISIBILITY_NO_ONE": 0, - "PROFILE_SHOWCASE_VISIBILITY_IDVERIFIED_CONTACTS": 1, - "PROFILE_SHOWCASE_VISIBILITY_CONTACTS": 2, - "PROFILE_SHOWCASE_VISIBILITY_EVERYONE": 3, - } -) +var ProfileShowcaseVisibility_name = map[int32]string{ + 0: "PROFILE_SHOWCASE_VISIBILITY_NO_ONE", + 1: "PROFILE_SHOWCASE_VISIBILITY_IDVERIFIED_CONTACTS", + 2: "PROFILE_SHOWCASE_VISIBILITY_CONTACTS", + 3: "PROFILE_SHOWCASE_VISIBILITY_EVERYONE", +} -func (x ProfileShowcaseVisibility) Enum() *ProfileShowcaseVisibility { - p := new(ProfileShowcaseVisibility) - *p = x - return p +var ProfileShowcaseVisibility_value = map[string]int32{ + "PROFILE_SHOWCASE_VISIBILITY_NO_ONE": 0, + "PROFILE_SHOWCASE_VISIBILITY_IDVERIFIED_CONTACTS": 1, + "PROFILE_SHOWCASE_VISIBILITY_CONTACTS": 2, + "PROFILE_SHOWCASE_VISIBILITY_EVERYONE": 3, } func (x ProfileShowcaseVisibility) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(ProfileShowcaseVisibility_name, int32(x)) } -func (ProfileShowcaseVisibility) Descriptor() protoreflect.EnumDescriptor { - return file_profile_showcase_proto_enumTypes[0].Descriptor() -} - -func (ProfileShowcaseVisibility) Type() protoreflect.EnumType { - return &file_profile_showcase_proto_enumTypes[0] -} - -func (x ProfileShowcaseVisibility) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ProfileShowcaseVisibility.Descriptor instead. func (ProfileShowcaseVisibility) EnumDescriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{0} + return fileDescriptor_5bcd51b424a05798, []int{0} } type ProfileShowcaseCommunity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CommunityId string `protobuf:"bytes,1,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` - Order uint32 `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"` - Grant []byte `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"` + CommunityId string `protobuf:"bytes,1,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + Order uint32 `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"` + Grant []byte `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcaseCommunity) Reset() { - *x = ProfileShowcaseCommunity{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcaseCommunity) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseCommunity) ProtoMessage() {} - -func (x *ProfileShowcaseCommunity) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseCommunity.ProtoReflect.Descriptor instead. +func (m *ProfileShowcaseCommunity) Reset() { *m = ProfileShowcaseCommunity{} } +func (m *ProfileShowcaseCommunity) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseCommunity) ProtoMessage() {} func (*ProfileShowcaseCommunity) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{0} + return fileDescriptor_5bcd51b424a05798, []int{0} } -func (x *ProfileShowcaseCommunity) GetCommunityId() string { - if x != nil { - return x.CommunityId +func (m *ProfileShowcaseCommunity) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseCommunity.Unmarshal(m, b) +} +func (m *ProfileShowcaseCommunity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseCommunity.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseCommunity) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseCommunity.Merge(m, src) +} +func (m *ProfileShowcaseCommunity) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseCommunity.Size(m) +} +func (m *ProfileShowcaseCommunity) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseCommunity.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseCommunity proto.InternalMessageInfo + +func (m *ProfileShowcaseCommunity) GetCommunityId() string { + if m != nil { + return m.CommunityId } return "" } -func (x *ProfileShowcaseCommunity) GetOrder() uint32 { - if x != nil { - return x.Order +func (m *ProfileShowcaseCommunity) GetOrder() uint32 { + if m != nil { + return m.Order } return 0 } -func (x *ProfileShowcaseCommunity) GetGrant() []byte { - if x != nil { - return x.Grant +func (m *ProfileShowcaseCommunity) GetGrant() []byte { + if m != nil { + return m.Grant } return nil } type ProfileShowcaseAccount struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - ColorId string `protobuf:"bytes,3,opt,name=color_id,json=colorId,proto3" json:"color_id,omitempty"` - Emoji string `protobuf:"bytes,4,opt,name=emoji,proto3" json:"emoji,omitempty"` - Order uint32 `protobuf:"varint,5,opt,name=order,proto3" json:"order,omitempty"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + ColorId string `protobuf:"bytes,3,opt,name=color_id,json=colorId,proto3" json:"color_id,omitempty"` + Emoji string `protobuf:"bytes,4,opt,name=emoji,proto3" json:"emoji,omitempty"` + Order uint32 `protobuf:"varint,5,opt,name=order,proto3" json:"order,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcaseAccount) Reset() { - *x = ProfileShowcaseAccount{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcaseAccount) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseAccount) ProtoMessage() {} - -func (x *ProfileShowcaseAccount) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseAccount.ProtoReflect.Descriptor instead. +func (m *ProfileShowcaseAccount) Reset() { *m = ProfileShowcaseAccount{} } +func (m *ProfileShowcaseAccount) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseAccount) ProtoMessage() {} func (*ProfileShowcaseAccount) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{1} + return fileDescriptor_5bcd51b424a05798, []int{1} } -func (x *ProfileShowcaseAccount) GetAddress() string { - if x != nil { - return x.Address +func (m *ProfileShowcaseAccount) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseAccount.Unmarshal(m, b) +} +func (m *ProfileShowcaseAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseAccount.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseAccount) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseAccount.Merge(m, src) +} +func (m *ProfileShowcaseAccount) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseAccount.Size(m) +} +func (m *ProfileShowcaseAccount) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseAccount.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseAccount proto.InternalMessageInfo + +func (m *ProfileShowcaseAccount) GetAddress() string { + if m != nil { + return m.Address } return "" } -func (x *ProfileShowcaseAccount) GetName() string { - if x != nil { - return x.Name +func (m *ProfileShowcaseAccount) GetName() string { + if m != nil { + return m.Name } return "" } -func (x *ProfileShowcaseAccount) GetColorId() string { - if x != nil { - return x.ColorId +func (m *ProfileShowcaseAccount) GetColorId() string { + if m != nil { + return m.ColorId } return "" } -func (x *ProfileShowcaseAccount) GetEmoji() string { - if x != nil { - return x.Emoji +func (m *ProfileShowcaseAccount) GetEmoji() string { + if m != nil { + return m.Emoji } return "" } -func (x *ProfileShowcaseAccount) GetOrder() uint32 { - if x != nil { - return x.Order +func (m *ProfileShowcaseAccount) GetOrder() uint32 { + if m != nil { + return m.Order } return 0 } type ProfileShowcaseCollectible struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Deprecated: Marked as deprecated in profile_showcase.proto. - Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` - Order uint32 `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"` - ContractAddress string `protobuf:"bytes,3,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` - CommunityId string `protobuf:"bytes,4,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` - ChainId uint64 `protobuf:"varint,5,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - TokenId string `protobuf:"bytes,6,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - AccountAddress string `protobuf:"bytes,7,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` // Deprecated: Do not use. + Order uint32 `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"` + ContractAddress string `protobuf:"bytes,3,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` + CommunityId string `protobuf:"bytes,4,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + ChainId uint64 `protobuf:"varint,5,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + TokenId string `protobuf:"bytes,6,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + AccountAddress string `protobuf:"bytes,7,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcaseCollectible) Reset() { - *x = ProfileShowcaseCollectible{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcaseCollectible) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseCollectible) ProtoMessage() {} - -func (x *ProfileShowcaseCollectible) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseCollectible.ProtoReflect.Descriptor instead. +func (m *ProfileShowcaseCollectible) Reset() { *m = ProfileShowcaseCollectible{} } +func (m *ProfileShowcaseCollectible) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseCollectible) ProtoMessage() {} func (*ProfileShowcaseCollectible) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{2} + return fileDescriptor_5bcd51b424a05798, []int{2} } -// Deprecated: Marked as deprecated in profile_showcase.proto. -func (x *ProfileShowcaseCollectible) GetUid() string { - if x != nil { - return x.Uid +func (m *ProfileShowcaseCollectible) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseCollectible.Unmarshal(m, b) +} +func (m *ProfileShowcaseCollectible) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseCollectible.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseCollectible) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseCollectible.Merge(m, src) +} +func (m *ProfileShowcaseCollectible) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseCollectible.Size(m) +} +func (m *ProfileShowcaseCollectible) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseCollectible.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseCollectible proto.InternalMessageInfo + +// Deprecated: Do not use. +func (m *ProfileShowcaseCollectible) GetUid() string { + if m != nil { + return m.Uid } return "" } -func (x *ProfileShowcaseCollectible) GetOrder() uint32 { - if x != nil { - return x.Order +func (m *ProfileShowcaseCollectible) GetOrder() uint32 { + if m != nil { + return m.Order } return 0 } -func (x *ProfileShowcaseCollectible) GetContractAddress() string { - if x != nil { - return x.ContractAddress +func (m *ProfileShowcaseCollectible) GetContractAddress() string { + if m != nil { + return m.ContractAddress } return "" } -func (x *ProfileShowcaseCollectible) GetCommunityId() string { - if x != nil { - return x.CommunityId +func (m *ProfileShowcaseCollectible) GetCommunityId() string { + if m != nil { + return m.CommunityId } return "" } -func (x *ProfileShowcaseCollectible) GetChainId() uint64 { - if x != nil { - return x.ChainId +func (m *ProfileShowcaseCollectible) GetChainId() uint64 { + if m != nil { + return m.ChainId } return 0 } -func (x *ProfileShowcaseCollectible) GetTokenId() string { - if x != nil { - return x.TokenId +func (m *ProfileShowcaseCollectible) GetTokenId() string { + if m != nil { + return m.TokenId } return "" } -func (x *ProfileShowcaseCollectible) GetAccountAddress() string { - if x != nil { - return x.AccountAddress +func (m *ProfileShowcaseCollectible) GetAccountAddress() string { + if m != nil { + return m.AccountAddress } return "" } type ProfileShowcaseVerifiedToken struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` - Order uint32 `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"` + Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` + Order uint32 `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcaseVerifiedToken) Reset() { - *x = ProfileShowcaseVerifiedToken{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcaseVerifiedToken) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseVerifiedToken) ProtoMessage() {} - -func (x *ProfileShowcaseVerifiedToken) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseVerifiedToken.ProtoReflect.Descriptor instead. +func (m *ProfileShowcaseVerifiedToken) Reset() { *m = ProfileShowcaseVerifiedToken{} } +func (m *ProfileShowcaseVerifiedToken) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseVerifiedToken) ProtoMessage() {} func (*ProfileShowcaseVerifiedToken) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{3} + return fileDescriptor_5bcd51b424a05798, []int{3} } -func (x *ProfileShowcaseVerifiedToken) GetSymbol() string { - if x != nil { - return x.Symbol +func (m *ProfileShowcaseVerifiedToken) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseVerifiedToken.Unmarshal(m, b) +} +func (m *ProfileShowcaseVerifiedToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseVerifiedToken.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseVerifiedToken) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseVerifiedToken.Merge(m, src) +} +func (m *ProfileShowcaseVerifiedToken) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseVerifiedToken.Size(m) +} +func (m *ProfileShowcaseVerifiedToken) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseVerifiedToken.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseVerifiedToken proto.InternalMessageInfo + +func (m *ProfileShowcaseVerifiedToken) GetSymbol() string { + if m != nil { + return m.Symbol } return "" } -func (x *ProfileShowcaseVerifiedToken) GetOrder() uint32 { - if x != nil { - return x.Order +func (m *ProfileShowcaseVerifiedToken) GetOrder() uint32 { + if m != nil { + return m.Order } return 0 } type ProfileShowcaseUnverifiedToken struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` - Order uint32 `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"` - ChainId uint64 `protobuf:"varint,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - CommunityId string `protobuf:"bytes,4,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` + Order uint32 `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"` + ChainId uint64 `protobuf:"varint,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + CommunityId string `protobuf:"bytes,4,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcaseUnverifiedToken) Reset() { - *x = ProfileShowcaseUnverifiedToken{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcaseUnverifiedToken) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseUnverifiedToken) ProtoMessage() {} - -func (x *ProfileShowcaseUnverifiedToken) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseUnverifiedToken.ProtoReflect.Descriptor instead. +func (m *ProfileShowcaseUnverifiedToken) Reset() { *m = ProfileShowcaseUnverifiedToken{} } +func (m *ProfileShowcaseUnverifiedToken) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseUnverifiedToken) ProtoMessage() {} func (*ProfileShowcaseUnverifiedToken) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{4} + return fileDescriptor_5bcd51b424a05798, []int{4} } -func (x *ProfileShowcaseUnverifiedToken) GetContractAddress() string { - if x != nil { - return x.ContractAddress +func (m *ProfileShowcaseUnverifiedToken) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseUnverifiedToken.Unmarshal(m, b) +} +func (m *ProfileShowcaseUnverifiedToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseUnverifiedToken.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseUnverifiedToken) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseUnverifiedToken.Merge(m, src) +} +func (m *ProfileShowcaseUnverifiedToken) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseUnverifiedToken.Size(m) +} +func (m *ProfileShowcaseUnverifiedToken) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseUnverifiedToken.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseUnverifiedToken proto.InternalMessageInfo + +func (m *ProfileShowcaseUnverifiedToken) GetContractAddress() string { + if m != nil { + return m.ContractAddress } return "" } -func (x *ProfileShowcaseUnverifiedToken) GetOrder() uint32 { - if x != nil { - return x.Order +func (m *ProfileShowcaseUnverifiedToken) GetOrder() uint32 { + if m != nil { + return m.Order } return 0 } -func (x *ProfileShowcaseUnverifiedToken) GetChainId() uint64 { - if x != nil { - return x.ChainId +func (m *ProfileShowcaseUnverifiedToken) GetChainId() uint64 { + if m != nil { + return m.ChainId } return 0 } -func (x *ProfileShowcaseUnverifiedToken) GetCommunityId() string { - if x != nil { - return x.CommunityId +func (m *ProfileShowcaseUnverifiedToken) GetCommunityId() string { + if m != nil { + return m.CommunityId } return "" } type ProfileShowcaseSocialLink struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - Order uint32 `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"` - Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + Order uint32 `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"` + Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcaseSocialLink) Reset() { - *x = ProfileShowcaseSocialLink{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcaseSocialLink) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseSocialLink) ProtoMessage() {} - -func (x *ProfileShowcaseSocialLink) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseSocialLink.ProtoReflect.Descriptor instead. +func (m *ProfileShowcaseSocialLink) Reset() { *m = ProfileShowcaseSocialLink{} } +func (m *ProfileShowcaseSocialLink) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseSocialLink) ProtoMessage() {} func (*ProfileShowcaseSocialLink) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{5} + return fileDescriptor_5bcd51b424a05798, []int{5} } -func (x *ProfileShowcaseSocialLink) GetUrl() string { - if x != nil { - return x.Url +func (m *ProfileShowcaseSocialLink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseSocialLink.Unmarshal(m, b) +} +func (m *ProfileShowcaseSocialLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseSocialLink.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseSocialLink) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseSocialLink.Merge(m, src) +} +func (m *ProfileShowcaseSocialLink) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseSocialLink.Size(m) +} +func (m *ProfileShowcaseSocialLink) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseSocialLink.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseSocialLink proto.InternalMessageInfo + +func (m *ProfileShowcaseSocialLink) GetUrl() string { + if m != nil { + return m.Url } return "" } -func (x *ProfileShowcaseSocialLink) GetOrder() uint32 { - if x != nil { - return x.Order +func (m *ProfileShowcaseSocialLink) GetOrder() uint32 { + if m != nil { + return m.Order } return 0 } -func (x *ProfileShowcaseSocialLink) GetText() string { - if x != nil { - return x.Text +func (m *ProfileShowcaseSocialLink) GetText() string { + if m != nil { + return m.Text } return "" } type ProfileShowcaseEntries struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Communities []*ProfileShowcaseCommunity `protobuf:"bytes,1,rep,name=communities,proto3" json:"communities,omitempty"` - Accounts []*ProfileShowcaseAccount `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"` - Collectibles []*ProfileShowcaseCollectible `protobuf:"bytes,3,rep,name=collectibles,proto3" json:"collectibles,omitempty"` - VerifiedTokens []*ProfileShowcaseVerifiedToken `protobuf:"bytes,4,rep,name=verified_tokens,json=verifiedTokens,proto3" json:"verified_tokens,omitempty"` - UnverifiedTokens []*ProfileShowcaseUnverifiedToken `protobuf:"bytes,5,rep,name=unverified_tokens,json=unverifiedTokens,proto3" json:"unverified_tokens,omitempty"` - SocialLinks []*ProfileShowcaseSocialLink `protobuf:"bytes,6,rep,name=social_links,json=socialLinks,proto3" json:"social_links,omitempty"` + Communities []*ProfileShowcaseCommunity `protobuf:"bytes,1,rep,name=communities,proto3" json:"communities,omitempty"` + Accounts []*ProfileShowcaseAccount `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"` + Collectibles []*ProfileShowcaseCollectible `protobuf:"bytes,3,rep,name=collectibles,proto3" json:"collectibles,omitempty"` + VerifiedTokens []*ProfileShowcaseVerifiedToken `protobuf:"bytes,4,rep,name=verified_tokens,json=verifiedTokens,proto3" json:"verified_tokens,omitempty"` + UnverifiedTokens []*ProfileShowcaseUnverifiedToken `protobuf:"bytes,5,rep,name=unverified_tokens,json=unverifiedTokens,proto3" json:"unverified_tokens,omitempty"` + SocialLinks []*ProfileShowcaseSocialLink `protobuf:"bytes,6,rep,name=social_links,json=socialLinks,proto3" json:"social_links,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcaseEntries) Reset() { - *x = ProfileShowcaseEntries{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcaseEntries) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseEntries) ProtoMessage() {} - -func (x *ProfileShowcaseEntries) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseEntries.ProtoReflect.Descriptor instead. +func (m *ProfileShowcaseEntries) Reset() { *m = ProfileShowcaseEntries{} } +func (m *ProfileShowcaseEntries) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseEntries) ProtoMessage() {} func (*ProfileShowcaseEntries) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{6} + return fileDescriptor_5bcd51b424a05798, []int{6} } -func (x *ProfileShowcaseEntries) GetCommunities() []*ProfileShowcaseCommunity { - if x != nil { - return x.Communities +func (m *ProfileShowcaseEntries) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseEntries.Unmarshal(m, b) +} +func (m *ProfileShowcaseEntries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseEntries.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseEntries) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseEntries.Merge(m, src) +} +func (m *ProfileShowcaseEntries) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseEntries.Size(m) +} +func (m *ProfileShowcaseEntries) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseEntries.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseEntries proto.InternalMessageInfo + +func (m *ProfileShowcaseEntries) GetCommunities() []*ProfileShowcaseCommunity { + if m != nil { + return m.Communities } return nil } -func (x *ProfileShowcaseEntries) GetAccounts() []*ProfileShowcaseAccount { - if x != nil { - return x.Accounts +func (m *ProfileShowcaseEntries) GetAccounts() []*ProfileShowcaseAccount { + if m != nil { + return m.Accounts } return nil } -func (x *ProfileShowcaseEntries) GetCollectibles() []*ProfileShowcaseCollectible { - if x != nil { - return x.Collectibles +func (m *ProfileShowcaseEntries) GetCollectibles() []*ProfileShowcaseCollectible { + if m != nil { + return m.Collectibles } return nil } -func (x *ProfileShowcaseEntries) GetVerifiedTokens() []*ProfileShowcaseVerifiedToken { - if x != nil { - return x.VerifiedTokens +func (m *ProfileShowcaseEntries) GetVerifiedTokens() []*ProfileShowcaseVerifiedToken { + if m != nil { + return m.VerifiedTokens } return nil } -func (x *ProfileShowcaseEntries) GetUnverifiedTokens() []*ProfileShowcaseUnverifiedToken { - if x != nil { - return x.UnverifiedTokens +func (m *ProfileShowcaseEntries) GetUnverifiedTokens() []*ProfileShowcaseUnverifiedToken { + if m != nil { + return m.UnverifiedTokens } return nil } -func (x *ProfileShowcaseEntries) GetSocialLinks() []*ProfileShowcaseSocialLink { - if x != nil { - return x.SocialLinks +func (m *ProfileShowcaseEntries) GetSocialLinks() []*ProfileShowcaseSocialLink { + if m != nil { + return m.SocialLinks } return nil } type ProfileShowcaseEntriesEncrypted struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - EncryptedEntries []byte `protobuf:"bytes,1,opt,name=encrypted_entries,json=encryptedEntries,proto3" json:"encrypted_entries,omitempty"` - EncryptionKeys [][]byte `protobuf:"bytes,2,rep,name=encryption_keys,json=encryptionKeys,proto3" json:"encryption_keys,omitempty"` + EncryptedEntries []byte `protobuf:"bytes,1,opt,name=encrypted_entries,json=encryptedEntries,proto3" json:"encrypted_entries,omitempty"` + EncryptionKeys [][]byte `protobuf:"bytes,2,rep,name=encryption_keys,json=encryptionKeys,proto3" json:"encryption_keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcaseEntriesEncrypted) Reset() { - *x = ProfileShowcaseEntriesEncrypted{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcaseEntriesEncrypted) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseEntriesEncrypted) ProtoMessage() {} - -func (x *ProfileShowcaseEntriesEncrypted) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseEntriesEncrypted.ProtoReflect.Descriptor instead. +func (m *ProfileShowcaseEntriesEncrypted) Reset() { *m = ProfileShowcaseEntriesEncrypted{} } +func (m *ProfileShowcaseEntriesEncrypted) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseEntriesEncrypted) ProtoMessage() {} func (*ProfileShowcaseEntriesEncrypted) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{7} + return fileDescriptor_5bcd51b424a05798, []int{7} } -func (x *ProfileShowcaseEntriesEncrypted) GetEncryptedEntries() []byte { - if x != nil { - return x.EncryptedEntries +func (m *ProfileShowcaseEntriesEncrypted) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseEntriesEncrypted.Unmarshal(m, b) +} +func (m *ProfileShowcaseEntriesEncrypted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseEntriesEncrypted.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseEntriesEncrypted) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseEntriesEncrypted.Merge(m, src) +} +func (m *ProfileShowcaseEntriesEncrypted) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseEntriesEncrypted.Size(m) +} +func (m *ProfileShowcaseEntriesEncrypted) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseEntriesEncrypted.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseEntriesEncrypted proto.InternalMessageInfo + +func (m *ProfileShowcaseEntriesEncrypted) GetEncryptedEntries() []byte { + if m != nil { + return m.EncryptedEntries } return nil } -func (x *ProfileShowcaseEntriesEncrypted) GetEncryptionKeys() [][]byte { - if x != nil { - return x.EncryptionKeys +func (m *ProfileShowcaseEntriesEncrypted) GetEncryptionKeys() [][]byte { + if m != nil { + return m.EncryptionKeys } return nil } type ProfileShowcase struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - ForEveryone *ProfileShowcaseEntries `protobuf:"bytes,1,opt,name=for_everyone,json=forEveryone,proto3" json:"for_everyone,omitempty"` ForContacts *ProfileShowcaseEntriesEncrypted `protobuf:"bytes,2,opt,name=for_contacts,json=forContacts,proto3" json:"for_contacts,omitempty"` ForIdVerifiedContacts *ProfileShowcaseEntriesEncrypted `protobuf:"bytes,3,opt,name=for_id_verified_contacts,json=forIdVerifiedContacts,proto3" json:"for_id_verified_contacts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcase) Reset() { - *x = ProfileShowcase{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcase) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcase) ProtoMessage() {} - -func (x *ProfileShowcase) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcase.ProtoReflect.Descriptor instead. +func (m *ProfileShowcase) Reset() { *m = ProfileShowcase{} } +func (m *ProfileShowcase) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcase) ProtoMessage() {} func (*ProfileShowcase) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{8} + return fileDescriptor_5bcd51b424a05798, []int{8} } -func (x *ProfileShowcase) GetForEveryone() *ProfileShowcaseEntries { - if x != nil { - return x.ForEveryone +func (m *ProfileShowcase) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcase.Unmarshal(m, b) +} +func (m *ProfileShowcase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcase.Marshal(b, m, deterministic) +} +func (m *ProfileShowcase) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcase.Merge(m, src) +} +func (m *ProfileShowcase) XXX_Size() int { + return xxx_messageInfo_ProfileShowcase.Size(m) +} +func (m *ProfileShowcase) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcase.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcase proto.InternalMessageInfo + +func (m *ProfileShowcase) GetForEveryone() *ProfileShowcaseEntries { + if m != nil { + return m.ForEveryone } return nil } -func (x *ProfileShowcase) GetForContacts() *ProfileShowcaseEntriesEncrypted { - if x != nil { - return x.ForContacts +func (m *ProfileShowcase) GetForContacts() *ProfileShowcaseEntriesEncrypted { + if m != nil { + return m.ForContacts } return nil } -func (x *ProfileShowcase) GetForIdVerifiedContacts() *ProfileShowcaseEntriesEncrypted { - if x != nil { - return x.ForIdVerifiedContacts +func (m *ProfileShowcase) GetForIdVerifiedContacts() *ProfileShowcaseEntriesEncrypted { + if m != nil { + return m.ForIdVerifiedContacts } return nil } type ProfileShowcaseCommunityPreference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CommunityId string `protobuf:"bytes,1,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` - ShowcaseVisibility ProfileShowcaseVisibility `protobuf:"varint,2,opt,name=showcase_visibility,json=showcaseVisibility,proto3,enum=protobuf.ProfileShowcaseVisibility" json:"showcase_visibility,omitempty"` - Order uint32 `protobuf:"varint,3,opt,name=order,proto3" json:"order,omitempty"` + CommunityId string `protobuf:"bytes,1,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + ShowcaseVisibility ProfileShowcaseVisibility `protobuf:"varint,2,opt,name=showcase_visibility,json=showcaseVisibility,proto3,enum=protobuf.ProfileShowcaseVisibility" json:"showcase_visibility,omitempty"` + Order uint32 `protobuf:"varint,3,opt,name=order,proto3" json:"order,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcaseCommunityPreference) Reset() { - *x = ProfileShowcaseCommunityPreference{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcaseCommunityPreference) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseCommunityPreference) ProtoMessage() {} - -func (x *ProfileShowcaseCommunityPreference) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseCommunityPreference.ProtoReflect.Descriptor instead. +func (m *ProfileShowcaseCommunityPreference) Reset() { *m = ProfileShowcaseCommunityPreference{} } +func (m *ProfileShowcaseCommunityPreference) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseCommunityPreference) ProtoMessage() {} func (*ProfileShowcaseCommunityPreference) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{9} + return fileDescriptor_5bcd51b424a05798, []int{9} } -func (x *ProfileShowcaseCommunityPreference) GetCommunityId() string { - if x != nil { - return x.CommunityId +func (m *ProfileShowcaseCommunityPreference) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseCommunityPreference.Unmarshal(m, b) +} +func (m *ProfileShowcaseCommunityPreference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseCommunityPreference.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseCommunityPreference) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseCommunityPreference.Merge(m, src) +} +func (m *ProfileShowcaseCommunityPreference) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseCommunityPreference.Size(m) +} +func (m *ProfileShowcaseCommunityPreference) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseCommunityPreference.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseCommunityPreference proto.InternalMessageInfo + +func (m *ProfileShowcaseCommunityPreference) GetCommunityId() string { + if m != nil { + return m.CommunityId } return "" } -func (x *ProfileShowcaseCommunityPreference) GetShowcaseVisibility() ProfileShowcaseVisibility { - if x != nil { - return x.ShowcaseVisibility +func (m *ProfileShowcaseCommunityPreference) GetShowcaseVisibility() ProfileShowcaseVisibility { + if m != nil { + return m.ShowcaseVisibility } return ProfileShowcaseVisibility_PROFILE_SHOWCASE_VISIBILITY_NO_ONE } -func (x *ProfileShowcaseCommunityPreference) GetOrder() uint32 { - if x != nil { - return x.Order +func (m *ProfileShowcaseCommunityPreference) GetOrder() uint32 { + if m != nil { + return m.Order } return 0 } type ProfileShowcaseAccountPreference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - ColorId string `protobuf:"bytes,3,opt,name=color_id,json=colorId,proto3" json:"color_id,omitempty"` - Emoji string `protobuf:"bytes,4,opt,name=emoji,proto3" json:"emoji,omitempty"` - ShowcaseVisibility ProfileShowcaseVisibility `protobuf:"varint,5,opt,name=showcase_visibility,json=showcaseVisibility,proto3,enum=protobuf.ProfileShowcaseVisibility" json:"showcase_visibility,omitempty"` - Order uint32 `protobuf:"varint,6,opt,name=order,proto3" json:"order,omitempty"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + ColorId string `protobuf:"bytes,3,opt,name=color_id,json=colorId,proto3" json:"color_id,omitempty"` + Emoji string `protobuf:"bytes,4,opt,name=emoji,proto3" json:"emoji,omitempty"` + ShowcaseVisibility ProfileShowcaseVisibility `protobuf:"varint,5,opt,name=showcase_visibility,json=showcaseVisibility,proto3,enum=protobuf.ProfileShowcaseVisibility" json:"showcase_visibility,omitempty"` + Order uint32 `protobuf:"varint,6,opt,name=order,proto3" json:"order,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcaseAccountPreference) Reset() { - *x = ProfileShowcaseAccountPreference{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcaseAccountPreference) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseAccountPreference) ProtoMessage() {} - -func (x *ProfileShowcaseAccountPreference) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseAccountPreference.ProtoReflect.Descriptor instead. +func (m *ProfileShowcaseAccountPreference) Reset() { *m = ProfileShowcaseAccountPreference{} } +func (m *ProfileShowcaseAccountPreference) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseAccountPreference) ProtoMessage() {} func (*ProfileShowcaseAccountPreference) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{10} + return fileDescriptor_5bcd51b424a05798, []int{10} } -func (x *ProfileShowcaseAccountPreference) GetAddress() string { - if x != nil { - return x.Address +func (m *ProfileShowcaseAccountPreference) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseAccountPreference.Unmarshal(m, b) +} +func (m *ProfileShowcaseAccountPreference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseAccountPreference.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseAccountPreference) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseAccountPreference.Merge(m, src) +} +func (m *ProfileShowcaseAccountPreference) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseAccountPreference.Size(m) +} +func (m *ProfileShowcaseAccountPreference) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseAccountPreference.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseAccountPreference proto.InternalMessageInfo + +func (m *ProfileShowcaseAccountPreference) GetAddress() string { + if m != nil { + return m.Address } return "" } -func (x *ProfileShowcaseAccountPreference) GetName() string { - if x != nil { - return x.Name +func (m *ProfileShowcaseAccountPreference) GetName() string { + if m != nil { + return m.Name } return "" } -func (x *ProfileShowcaseAccountPreference) GetColorId() string { - if x != nil { - return x.ColorId +func (m *ProfileShowcaseAccountPreference) GetColorId() string { + if m != nil { + return m.ColorId } return "" } -func (x *ProfileShowcaseAccountPreference) GetEmoji() string { - if x != nil { - return x.Emoji +func (m *ProfileShowcaseAccountPreference) GetEmoji() string { + if m != nil { + return m.Emoji } return "" } -func (x *ProfileShowcaseAccountPreference) GetShowcaseVisibility() ProfileShowcaseVisibility { - if x != nil { - return x.ShowcaseVisibility +func (m *ProfileShowcaseAccountPreference) GetShowcaseVisibility() ProfileShowcaseVisibility { + if m != nil { + return m.ShowcaseVisibility } return ProfileShowcaseVisibility_PROFILE_SHOWCASE_VISIBILITY_NO_ONE } -func (x *ProfileShowcaseAccountPreference) GetOrder() uint32 { - if x != nil { - return x.Order +func (m *ProfileShowcaseAccountPreference) GetOrder() uint32 { + if m != nil { + return m.Order } return 0 } type ProfileShowcaseCollectiblePreference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` - ChainId uint64 `protobuf:"varint,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` - CommunityId string `protobuf:"bytes,4,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` - AccountAddress string `protobuf:"bytes,5,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` - ShowcaseVisibility ProfileShowcaseVisibility `protobuf:"varint,6,opt,name=showcase_visibility,json=showcaseVisibility,proto3,enum=protobuf.ProfileShowcaseVisibility" json:"showcase_visibility,omitempty"` - Order uint32 `protobuf:"varint,7,opt,name=order,proto3" json:"order,omitempty"` + ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` + ChainId uint64 `protobuf:"varint,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + CommunityId string `protobuf:"bytes,4,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + AccountAddress string `protobuf:"bytes,5,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` + ShowcaseVisibility ProfileShowcaseVisibility `protobuf:"varint,6,opt,name=showcase_visibility,json=showcaseVisibility,proto3,enum=protobuf.ProfileShowcaseVisibility" json:"showcase_visibility,omitempty"` + Order uint32 `protobuf:"varint,7,opt,name=order,proto3" json:"order,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcaseCollectiblePreference) Reset() { - *x = ProfileShowcaseCollectiblePreference{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcaseCollectiblePreference) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseCollectiblePreference) ProtoMessage() {} - -func (x *ProfileShowcaseCollectiblePreference) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseCollectiblePreference.ProtoReflect.Descriptor instead. +func (m *ProfileShowcaseCollectiblePreference) Reset() { *m = ProfileShowcaseCollectiblePreference{} } +func (m *ProfileShowcaseCollectiblePreference) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseCollectiblePreference) ProtoMessage() {} func (*ProfileShowcaseCollectiblePreference) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{11} + return fileDescriptor_5bcd51b424a05798, []int{11} } -func (x *ProfileShowcaseCollectiblePreference) GetContractAddress() string { - if x != nil { - return x.ContractAddress +func (m *ProfileShowcaseCollectiblePreference) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseCollectiblePreference.Unmarshal(m, b) +} +func (m *ProfileShowcaseCollectiblePreference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseCollectiblePreference.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseCollectiblePreference) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseCollectiblePreference.Merge(m, src) +} +func (m *ProfileShowcaseCollectiblePreference) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseCollectiblePreference.Size(m) +} +func (m *ProfileShowcaseCollectiblePreference) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseCollectiblePreference.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseCollectiblePreference proto.InternalMessageInfo + +func (m *ProfileShowcaseCollectiblePreference) GetContractAddress() string { + if m != nil { + return m.ContractAddress } return "" } -func (x *ProfileShowcaseCollectiblePreference) GetChainId() uint64 { - if x != nil { - return x.ChainId +func (m *ProfileShowcaseCollectiblePreference) GetChainId() uint64 { + if m != nil { + return m.ChainId } return 0 } -func (x *ProfileShowcaseCollectiblePreference) GetTokenId() string { - if x != nil { - return x.TokenId +func (m *ProfileShowcaseCollectiblePreference) GetTokenId() string { + if m != nil { + return m.TokenId } return "" } -func (x *ProfileShowcaseCollectiblePreference) GetCommunityId() string { - if x != nil { - return x.CommunityId +func (m *ProfileShowcaseCollectiblePreference) GetCommunityId() string { + if m != nil { + return m.CommunityId } return "" } -func (x *ProfileShowcaseCollectiblePreference) GetAccountAddress() string { - if x != nil { - return x.AccountAddress +func (m *ProfileShowcaseCollectiblePreference) GetAccountAddress() string { + if m != nil { + return m.AccountAddress } return "" } -func (x *ProfileShowcaseCollectiblePreference) GetShowcaseVisibility() ProfileShowcaseVisibility { - if x != nil { - return x.ShowcaseVisibility +func (m *ProfileShowcaseCollectiblePreference) GetShowcaseVisibility() ProfileShowcaseVisibility { + if m != nil { + return m.ShowcaseVisibility } return ProfileShowcaseVisibility_PROFILE_SHOWCASE_VISIBILITY_NO_ONE } -func (x *ProfileShowcaseCollectiblePreference) GetOrder() uint32 { - if x != nil { - return x.Order +func (m *ProfileShowcaseCollectiblePreference) GetOrder() uint32 { + if m != nil { + return m.Order } return 0 } type ProfileShowcaseVerifiedTokenPreference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` - ShowcaseVisibility ProfileShowcaseVisibility `protobuf:"varint,2,opt,name=showcase_visibility,json=showcaseVisibility,proto3,enum=protobuf.ProfileShowcaseVisibility" json:"showcase_visibility,omitempty"` - Order uint32 `protobuf:"varint,3,opt,name=order,proto3" json:"order,omitempty"` + Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` + ShowcaseVisibility ProfileShowcaseVisibility `protobuf:"varint,2,opt,name=showcase_visibility,json=showcaseVisibility,proto3,enum=protobuf.ProfileShowcaseVisibility" json:"showcase_visibility,omitempty"` + Order uint32 `protobuf:"varint,3,opt,name=order,proto3" json:"order,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcaseVerifiedTokenPreference) Reset() { - *x = ProfileShowcaseVerifiedTokenPreference{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *ProfileShowcaseVerifiedTokenPreference) Reset() { + *m = ProfileShowcaseVerifiedTokenPreference{} } - -func (x *ProfileShowcaseVerifiedTokenPreference) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseVerifiedTokenPreference) ProtoMessage() {} - -func (x *ProfileShowcaseVerifiedTokenPreference) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseVerifiedTokenPreference.ProtoReflect.Descriptor instead. +func (m *ProfileShowcaseVerifiedTokenPreference) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseVerifiedTokenPreference) ProtoMessage() {} func (*ProfileShowcaseVerifiedTokenPreference) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{12} + return fileDescriptor_5bcd51b424a05798, []int{12} } -func (x *ProfileShowcaseVerifiedTokenPreference) GetSymbol() string { - if x != nil { - return x.Symbol +func (m *ProfileShowcaseVerifiedTokenPreference) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseVerifiedTokenPreference.Unmarshal(m, b) +} +func (m *ProfileShowcaseVerifiedTokenPreference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseVerifiedTokenPreference.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseVerifiedTokenPreference) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseVerifiedTokenPreference.Merge(m, src) +} +func (m *ProfileShowcaseVerifiedTokenPreference) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseVerifiedTokenPreference.Size(m) +} +func (m *ProfileShowcaseVerifiedTokenPreference) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseVerifiedTokenPreference.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseVerifiedTokenPreference proto.InternalMessageInfo + +func (m *ProfileShowcaseVerifiedTokenPreference) GetSymbol() string { + if m != nil { + return m.Symbol } return "" } -func (x *ProfileShowcaseVerifiedTokenPreference) GetShowcaseVisibility() ProfileShowcaseVisibility { - if x != nil { - return x.ShowcaseVisibility +func (m *ProfileShowcaseVerifiedTokenPreference) GetShowcaseVisibility() ProfileShowcaseVisibility { + if m != nil { + return m.ShowcaseVisibility } return ProfileShowcaseVisibility_PROFILE_SHOWCASE_VISIBILITY_NO_ONE } -func (x *ProfileShowcaseVerifiedTokenPreference) GetOrder() uint32 { - if x != nil { - return x.Order +func (m *ProfileShowcaseVerifiedTokenPreference) GetOrder() uint32 { + if m != nil { + return m.Order } return 0 } type ProfileShowcaseUnverifiedTokenPreference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` - ChainId uint64 `protobuf:"varint,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - CommunityId string `protobuf:"bytes,3,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` - ShowcaseVisibility ProfileShowcaseVisibility `protobuf:"varint,4,opt,name=showcase_visibility,json=showcaseVisibility,proto3,enum=protobuf.ProfileShowcaseVisibility" json:"showcase_visibility,omitempty"` - Order uint32 `protobuf:"varint,5,opt,name=order,proto3" json:"order,omitempty"` + ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` + ChainId uint64 `protobuf:"varint,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + CommunityId string `protobuf:"bytes,3,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` + ShowcaseVisibility ProfileShowcaseVisibility `protobuf:"varint,4,opt,name=showcase_visibility,json=showcaseVisibility,proto3,enum=protobuf.ProfileShowcaseVisibility" json:"showcase_visibility,omitempty"` + Order uint32 `protobuf:"varint,5,opt,name=order,proto3" json:"order,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcaseUnverifiedTokenPreference) Reset() { - *x = ProfileShowcaseUnverifiedTokenPreference{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *ProfileShowcaseUnverifiedTokenPreference) Reset() { + *m = ProfileShowcaseUnverifiedTokenPreference{} } - -func (x *ProfileShowcaseUnverifiedTokenPreference) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseUnverifiedTokenPreference) ProtoMessage() {} - -func (x *ProfileShowcaseUnverifiedTokenPreference) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseUnverifiedTokenPreference.ProtoReflect.Descriptor instead. +func (m *ProfileShowcaseUnverifiedTokenPreference) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseUnverifiedTokenPreference) ProtoMessage() {} func (*ProfileShowcaseUnverifiedTokenPreference) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{13} + return fileDescriptor_5bcd51b424a05798, []int{13} } -func (x *ProfileShowcaseUnverifiedTokenPreference) GetContractAddress() string { - if x != nil { - return x.ContractAddress +func (m *ProfileShowcaseUnverifiedTokenPreference) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseUnverifiedTokenPreference.Unmarshal(m, b) +} +func (m *ProfileShowcaseUnverifiedTokenPreference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseUnverifiedTokenPreference.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseUnverifiedTokenPreference) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseUnverifiedTokenPreference.Merge(m, src) +} +func (m *ProfileShowcaseUnverifiedTokenPreference) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseUnverifiedTokenPreference.Size(m) +} +func (m *ProfileShowcaseUnverifiedTokenPreference) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseUnverifiedTokenPreference.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseUnverifiedTokenPreference proto.InternalMessageInfo + +func (m *ProfileShowcaseUnverifiedTokenPreference) GetContractAddress() string { + if m != nil { + return m.ContractAddress } return "" } -func (x *ProfileShowcaseUnverifiedTokenPreference) GetChainId() uint64 { - if x != nil { - return x.ChainId +func (m *ProfileShowcaseUnverifiedTokenPreference) GetChainId() uint64 { + if m != nil { + return m.ChainId } return 0 } -func (x *ProfileShowcaseUnverifiedTokenPreference) GetCommunityId() string { - if x != nil { - return x.CommunityId +func (m *ProfileShowcaseUnverifiedTokenPreference) GetCommunityId() string { + if m != nil { + return m.CommunityId } return "" } -func (x *ProfileShowcaseUnverifiedTokenPreference) GetShowcaseVisibility() ProfileShowcaseVisibility { - if x != nil { - return x.ShowcaseVisibility +func (m *ProfileShowcaseUnverifiedTokenPreference) GetShowcaseVisibility() ProfileShowcaseVisibility { + if m != nil { + return m.ShowcaseVisibility } return ProfileShowcaseVisibility_PROFILE_SHOWCASE_VISIBILITY_NO_ONE } -func (x *ProfileShowcaseUnverifiedTokenPreference) GetOrder() uint32 { - if x != nil { - return x.Order +func (m *ProfileShowcaseUnverifiedTokenPreference) GetOrder() uint32 { + if m != nil { + return m.Order } return 0 } type ProfileShowcaseSocialLinkPreference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` - Order uint32 `protobuf:"varint,3,opt,name=order,proto3" json:"order,omitempty"` - ShowcaseVisibility ProfileShowcaseVisibility `protobuf:"varint,4,opt,name=showcase_visibility,json=showcaseVisibility,proto3,enum=protobuf.ProfileShowcaseVisibility" json:"showcase_visibility,omitempty"` + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` + Order uint32 `protobuf:"varint,3,opt,name=order,proto3" json:"order,omitempty"` + ShowcaseVisibility ProfileShowcaseVisibility `protobuf:"varint,4,opt,name=showcase_visibility,json=showcaseVisibility,proto3,enum=protobuf.ProfileShowcaseVisibility" json:"showcase_visibility,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ProfileShowcaseSocialLinkPreference) Reset() { - *x = ProfileShowcaseSocialLinkPreference{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProfileShowcaseSocialLinkPreference) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProfileShowcaseSocialLinkPreference) ProtoMessage() {} - -func (x *ProfileShowcaseSocialLinkPreference) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProfileShowcaseSocialLinkPreference.ProtoReflect.Descriptor instead. +func (m *ProfileShowcaseSocialLinkPreference) Reset() { *m = ProfileShowcaseSocialLinkPreference{} } +func (m *ProfileShowcaseSocialLinkPreference) String() string { return proto.CompactTextString(m) } +func (*ProfileShowcaseSocialLinkPreference) ProtoMessage() {} func (*ProfileShowcaseSocialLinkPreference) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{14} + return fileDescriptor_5bcd51b424a05798, []int{14} } -func (x *ProfileShowcaseSocialLinkPreference) GetUrl() string { - if x != nil { - return x.Url +func (m *ProfileShowcaseSocialLinkPreference) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProfileShowcaseSocialLinkPreference.Unmarshal(m, b) +} +func (m *ProfileShowcaseSocialLinkPreference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProfileShowcaseSocialLinkPreference.Marshal(b, m, deterministic) +} +func (m *ProfileShowcaseSocialLinkPreference) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProfileShowcaseSocialLinkPreference.Merge(m, src) +} +func (m *ProfileShowcaseSocialLinkPreference) XXX_Size() int { + return xxx_messageInfo_ProfileShowcaseSocialLinkPreference.Size(m) +} +func (m *ProfileShowcaseSocialLinkPreference) XXX_DiscardUnknown() { + xxx_messageInfo_ProfileShowcaseSocialLinkPreference.DiscardUnknown(m) +} + +var xxx_messageInfo_ProfileShowcaseSocialLinkPreference proto.InternalMessageInfo + +func (m *ProfileShowcaseSocialLinkPreference) GetUrl() string { + if m != nil { + return m.Url } return "" } -func (x *ProfileShowcaseSocialLinkPreference) GetText() string { - if x != nil { - return x.Text +func (m *ProfileShowcaseSocialLinkPreference) GetText() string { + if m != nil { + return m.Text } return "" } -func (x *ProfileShowcaseSocialLinkPreference) GetOrder() uint32 { - if x != nil { - return x.Order +func (m *ProfileShowcaseSocialLinkPreference) GetOrder() uint32 { + if m != nil { + return m.Order } return 0 } -func (x *ProfileShowcaseSocialLinkPreference) GetShowcaseVisibility() ProfileShowcaseVisibility { - if x != nil { - return x.ShowcaseVisibility +func (m *ProfileShowcaseSocialLinkPreference) GetShowcaseVisibility() ProfileShowcaseVisibility { + if m != nil { + return m.ShowcaseVisibility } return ProfileShowcaseVisibility_PROFILE_SHOWCASE_VISIBILITY_NO_ONE } type SyncProfileShowcasePreferences struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - Communities []*ProfileShowcaseCommunityPreference `protobuf:"bytes,2,rep,name=communities,proto3" json:"communities,omitempty"` - Accounts []*ProfileShowcaseAccountPreference `protobuf:"bytes,3,rep,name=accounts,proto3" json:"accounts,omitempty"` - Collectibles []*ProfileShowcaseCollectiblePreference `protobuf:"bytes,4,rep,name=collectibles,proto3" json:"collectibles,omitempty"` - VerifiedTokens []*ProfileShowcaseVerifiedTokenPreference `protobuf:"bytes,5,rep,name=verified_tokens,json=verifiedTokens,proto3" json:"verified_tokens,omitempty"` - UnverifiedTokens []*ProfileShowcaseUnverifiedTokenPreference `protobuf:"bytes,6,rep,name=unverified_tokens,json=unverifiedTokens,proto3" json:"unverified_tokens,omitempty"` - SocialLinks []*ProfileShowcaseSocialLinkPreference `protobuf:"bytes,7,rep,name=social_links,json=socialLinks,proto3" json:"social_links,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + Communities []*ProfileShowcaseCommunityPreference `protobuf:"bytes,2,rep,name=communities,proto3" json:"communities,omitempty"` + Accounts []*ProfileShowcaseAccountPreference `protobuf:"bytes,3,rep,name=accounts,proto3" json:"accounts,omitempty"` + Collectibles []*ProfileShowcaseCollectiblePreference `protobuf:"bytes,4,rep,name=collectibles,proto3" json:"collectibles,omitempty"` + VerifiedTokens []*ProfileShowcaseVerifiedTokenPreference `protobuf:"bytes,5,rep,name=verified_tokens,json=verifiedTokens,proto3" json:"verified_tokens,omitempty"` + UnverifiedTokens []*ProfileShowcaseUnverifiedTokenPreference `protobuf:"bytes,6,rep,name=unverified_tokens,json=unverifiedTokens,proto3" json:"unverified_tokens,omitempty"` + SocialLinks []*ProfileShowcaseSocialLinkPreference `protobuf:"bytes,7,rep,name=social_links,json=socialLinks,proto3" json:"social_links,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SyncProfileShowcasePreferences) Reset() { - *x = SyncProfileShowcasePreferences{} - if protoimpl.UnsafeEnabled { - mi := &file_profile_showcase_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SyncProfileShowcasePreferences) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SyncProfileShowcasePreferences) ProtoMessage() {} - -func (x *SyncProfileShowcasePreferences) ProtoReflect() protoreflect.Message { - mi := &file_profile_showcase_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SyncProfileShowcasePreferences.ProtoReflect.Descriptor instead. +func (m *SyncProfileShowcasePreferences) Reset() { *m = SyncProfileShowcasePreferences{} } +func (m *SyncProfileShowcasePreferences) String() string { return proto.CompactTextString(m) } +func (*SyncProfileShowcasePreferences) ProtoMessage() {} func (*SyncProfileShowcasePreferences) Descriptor() ([]byte, []int) { - return file_profile_showcase_proto_rawDescGZIP(), []int{15} + return fileDescriptor_5bcd51b424a05798, []int{15} } -func (x *SyncProfileShowcasePreferences) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *SyncProfileShowcasePreferences) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SyncProfileShowcasePreferences.Unmarshal(m, b) +} +func (m *SyncProfileShowcasePreferences) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SyncProfileShowcasePreferences.Marshal(b, m, deterministic) +} +func (m *SyncProfileShowcasePreferences) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncProfileShowcasePreferences.Merge(m, src) +} +func (m *SyncProfileShowcasePreferences) XXX_Size() int { + return xxx_messageInfo_SyncProfileShowcasePreferences.Size(m) +} +func (m *SyncProfileShowcasePreferences) XXX_DiscardUnknown() { + xxx_messageInfo_SyncProfileShowcasePreferences.DiscardUnknown(m) +} + +var xxx_messageInfo_SyncProfileShowcasePreferences proto.InternalMessageInfo + +func (m *SyncProfileShowcasePreferences) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *SyncProfileShowcasePreferences) GetCommunities() []*ProfileShowcaseCommunityPreference { - if x != nil { - return x.Communities +func (m *SyncProfileShowcasePreferences) GetCommunities() []*ProfileShowcaseCommunityPreference { + if m != nil { + return m.Communities } return nil } -func (x *SyncProfileShowcasePreferences) GetAccounts() []*ProfileShowcaseAccountPreference { - if x != nil { - return x.Accounts +func (m *SyncProfileShowcasePreferences) GetAccounts() []*ProfileShowcaseAccountPreference { + if m != nil { + return m.Accounts } return nil } -func (x *SyncProfileShowcasePreferences) GetCollectibles() []*ProfileShowcaseCollectiblePreference { - if x != nil { - return x.Collectibles +func (m *SyncProfileShowcasePreferences) GetCollectibles() []*ProfileShowcaseCollectiblePreference { + if m != nil { + return m.Collectibles } return nil } -func (x *SyncProfileShowcasePreferences) GetVerifiedTokens() []*ProfileShowcaseVerifiedTokenPreference { - if x != nil { - return x.VerifiedTokens +func (m *SyncProfileShowcasePreferences) GetVerifiedTokens() []*ProfileShowcaseVerifiedTokenPreference { + if m != nil { + return m.VerifiedTokens } return nil } -func (x *SyncProfileShowcasePreferences) GetUnverifiedTokens() []*ProfileShowcaseUnverifiedTokenPreference { - if x != nil { - return x.UnverifiedTokens +func (m *SyncProfileShowcasePreferences) GetUnverifiedTokens() []*ProfileShowcaseUnverifiedTokenPreference { + if m != nil { + return m.UnverifiedTokens } return nil } -func (x *SyncProfileShowcasePreferences) GetSocialLinks() []*ProfileShowcaseSocialLinkPreference { - if x != nil { - return x.SocialLinks +func (m *SyncProfileShowcasePreferences) GetSocialLinks() []*ProfileShowcaseSocialLinkPreference { + if m != nil { + return m.SocialLinks } return nil } -var File_profile_showcase_proto protoreflect.FileDescriptor - -var file_profile_showcase_proto_rawDesc = []byte{ - 0x0a, 0x16, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x63, 0x61, - 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x22, 0x69, 0x0a, 0x18, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, - 0x77, 0x63, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x12, 0x21, - 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x49, - 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x8d, 0x01, - 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, - 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, - 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x49, - 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x22, 0xf5, 0x01, - 0x0a, 0x1a, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, - 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x03, - 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x03, 0x75, - 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, - 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, - 0x6e, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, - 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, - 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x4c, 0x0a, 0x1c, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x12, 0x14, 0x0a, - 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6f, 0x72, - 0x64, 0x65, 0x72, 0x22, 0x9f, 0x01, 0x0a, 0x1e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, - 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x55, 0x6e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, - 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, - 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, - 0x69, 0x74, 0x79, 0x49, 0x64, 0x22, 0x57, 0x0a, 0x19, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x4c, 0x69, - 0x6e, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x75, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, - 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x22, 0xd6, - 0x03, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, - 0x73, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x44, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, - 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, - 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, - 0x74, 0x79, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, - 0x3c, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x72, 0x6f, - 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x41, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x48, 0x0a, - 0x0c, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, - 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x43, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x52, 0x0c, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x4f, 0x0a, 0x0f, 0x76, 0x65, 0x72, 0x69, 0x66, - 0x69, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x26, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x72, 0x6f, 0x66, - 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, - 0x69, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, - 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x55, 0x0a, 0x11, 0x75, 0x6e, 0x76, 0x65, - 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x05, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, - 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x55, 0x6e, - 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x10, 0x75, - 0x6e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, - 0x46, 0x0a, 0x0c, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, - 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, - 0x53, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x0b, 0x73, 0x6f, 0x63, 0x69, - 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x22, 0x77, 0x0a, 0x1f, 0x50, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, - 0x73, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x65, 0x6e, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, - 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, - 0x52, 0x0e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, - 0x22, 0x88, 0x02, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, - 0x63, 0x61, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0c, 0x66, 0x6f, 0x72, 0x5f, 0x65, 0x76, 0x65, 0x72, - 0x79, 0x6f, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, - 0x77, 0x63, 0x61, 0x73, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x0b, 0x66, 0x6f, - 0x72, 0x45, 0x76, 0x65, 0x72, 0x79, 0x6f, 0x6e, 0x65, 0x12, 0x4c, 0x0a, 0x0c, 0x66, 0x6f, 0x72, - 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x29, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, - 0x73, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x52, 0x0b, 0x66, 0x6f, 0x72, 0x43, - 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x12, 0x62, 0x0a, 0x18, 0x66, 0x6f, 0x72, 0x5f, 0x69, - 0x64, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, - 0x63, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, - 0x63, 0x61, 0x73, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x65, 0x64, 0x52, 0x15, 0x66, 0x6f, 0x72, 0x49, 0x64, 0x56, 0x65, 0x72, 0x69, 0x66, - 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x22, 0xb3, 0x01, 0x0a, 0x22, - 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x43, - 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, - 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x54, 0x0a, 0x13, 0x73, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, - 0x65, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x72, - 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x56, 0x69, 0x73, - 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x12, 0x73, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, - 0x65, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6f, - 0x72, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, - 0x72, 0x22, 0xed, 0x01, 0x0a, 0x20, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, - 0x77, 0x63, 0x61, 0x73, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x72, 0x65, 0x66, - 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x69, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x49, 0x64, 0x12, - 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x12, 0x54, 0x0a, 0x13, 0x73, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, - 0x65, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x72, - 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x56, 0x69, 0x73, - 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x12, 0x73, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, - 0x65, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6f, - 0x72, 0x64, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, - 0x72, 0x22, 0xbf, 0x02, 0x0a, 0x24, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, - 0x77, 0x63, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x62, 0x6c, 0x65, - 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, - 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x63, - 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x27, - 0x0a, 0x0f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x54, 0x0a, 0x13, 0x73, 0x68, 0x6f, 0x77, 0x63, - 0x61, 0x73, 0x65, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x56, - 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x12, 0x73, 0x68, 0x6f, 0x77, 0x63, - 0x61, 0x73, 0x65, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, - 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6f, 0x72, - 0x64, 0x65, 0x72, 0x22, 0xac, 0x01, 0x0a, 0x26, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, - 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x16, - 0x0a, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x12, 0x54, 0x0a, 0x13, 0x73, 0x68, 0x6f, 0x77, 0x63, 0x61, - 0x73, 0x65, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, - 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x56, 0x69, - 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x12, 0x73, 0x68, 0x6f, 0x77, 0x63, 0x61, - 0x73, 0x65, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, - 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6f, 0x72, 0x64, - 0x65, 0x72, 0x22, 0xff, 0x01, 0x0a, 0x28, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, - 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x55, 0x6e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, - 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, - 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, - 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x54, 0x0a, 0x13, 0x73, 0x68, 0x6f, 0x77, - 0x63, 0x61, 0x73, 0x65, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, - 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x12, 0x73, 0x68, 0x6f, 0x77, - 0x63, 0x61, 0x73, 0x65, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6f, - 0x72, 0x64, 0x65, 0x72, 0x22, 0xb7, 0x01, 0x0a, 0x23, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x4c, 0x69, - 0x6e, 0x6b, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, - 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x12, - 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, - 0x78, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x54, 0x0a, 0x13, 0x73, 0x68, 0x6f, 0x77, - 0x63, 0x61, 0x73, 0x65, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, - 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x12, 0x73, 0x68, 0x6f, 0x77, - 0x63, 0x61, 0x73, 0x65, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x22, 0xb0, - 0x04, 0x0a, 0x1e, 0x53, 0x79, 0x6e, 0x63, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, - 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, - 0x73, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x4e, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, - 0x6e, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, - 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, - 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, - 0x75, 0x6e, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x46, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, - 0x63, 0x61, 0x73, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x72, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, - 0x52, 0x0a, 0x0c, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x73, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, - 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0c, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x62, - 0x6c, 0x65, 0x73, 0x12, 0x59, 0x0a, 0x0f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, - 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0e, - 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x5f, - 0x0a, 0x11, 0x75, 0x6e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, - 0x63, 0x61, 0x73, 0x65, 0x55, 0x6e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x10, 0x75, - 0x6e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, - 0x50, 0x0a, 0x0c, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, - 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65, - 0x53, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0b, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, - 0x73, 0x2a, 0xcc, 0x01, 0x0a, 0x19, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, - 0x77, 0x63, 0x61, 0x73, 0x65, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, - 0x26, 0x0a, 0x22, 0x50, 0x52, 0x4f, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x53, 0x48, 0x4f, 0x57, 0x43, - 0x41, 0x53, 0x45, 0x5f, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x4e, - 0x4f, 0x5f, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x33, 0x0a, 0x2f, 0x50, 0x52, 0x4f, 0x46, 0x49, - 0x4c, 0x45, 0x5f, 0x53, 0x48, 0x4f, 0x57, 0x43, 0x41, 0x53, 0x45, 0x5f, 0x56, 0x49, 0x53, 0x49, - 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x49, 0x44, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x45, - 0x44, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, 0x53, 0x10, 0x01, 0x12, 0x28, 0x0a, 0x24, - 0x50, 0x52, 0x4f, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x53, 0x48, 0x4f, 0x57, 0x43, 0x41, 0x53, 0x45, - 0x5f, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x4f, 0x4e, 0x54, - 0x41, 0x43, 0x54, 0x53, 0x10, 0x02, 0x12, 0x28, 0x0a, 0x24, 0x50, 0x52, 0x4f, 0x46, 0x49, 0x4c, - 0x45, 0x5f, 0x53, 0x48, 0x4f, 0x57, 0x43, 0x41, 0x53, 0x45, 0x5f, 0x56, 0x49, 0x53, 0x49, 0x42, - 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x45, 0x56, 0x45, 0x52, 0x59, 0x4f, 0x4e, 0x45, 0x10, 0x03, - 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterEnum("protobuf.ProfileShowcaseVisibility", ProfileShowcaseVisibility_name, ProfileShowcaseVisibility_value) + proto.RegisterType((*ProfileShowcaseCommunity)(nil), "protobuf.ProfileShowcaseCommunity") + proto.RegisterType((*ProfileShowcaseAccount)(nil), "protobuf.ProfileShowcaseAccount") + proto.RegisterType((*ProfileShowcaseCollectible)(nil), "protobuf.ProfileShowcaseCollectible") + proto.RegisterType((*ProfileShowcaseVerifiedToken)(nil), "protobuf.ProfileShowcaseVerifiedToken") + proto.RegisterType((*ProfileShowcaseUnverifiedToken)(nil), "protobuf.ProfileShowcaseUnverifiedToken") + proto.RegisterType((*ProfileShowcaseSocialLink)(nil), "protobuf.ProfileShowcaseSocialLink") + proto.RegisterType((*ProfileShowcaseEntries)(nil), "protobuf.ProfileShowcaseEntries") + proto.RegisterType((*ProfileShowcaseEntriesEncrypted)(nil), "protobuf.ProfileShowcaseEntriesEncrypted") + proto.RegisterType((*ProfileShowcase)(nil), "protobuf.ProfileShowcase") + proto.RegisterType((*ProfileShowcaseCommunityPreference)(nil), "protobuf.ProfileShowcaseCommunityPreference") + proto.RegisterType((*ProfileShowcaseAccountPreference)(nil), "protobuf.ProfileShowcaseAccountPreference") + proto.RegisterType((*ProfileShowcaseCollectiblePreference)(nil), "protobuf.ProfileShowcaseCollectiblePreference") + proto.RegisterType((*ProfileShowcaseVerifiedTokenPreference)(nil), "protobuf.ProfileShowcaseVerifiedTokenPreference") + proto.RegisterType((*ProfileShowcaseUnverifiedTokenPreference)(nil), "protobuf.ProfileShowcaseUnverifiedTokenPreference") + proto.RegisterType((*ProfileShowcaseSocialLinkPreference)(nil), "protobuf.ProfileShowcaseSocialLinkPreference") + proto.RegisterType((*SyncProfileShowcasePreferences)(nil), "protobuf.SyncProfileShowcasePreferences") } -var ( - file_profile_showcase_proto_rawDescOnce sync.Once - file_profile_showcase_proto_rawDescData = file_profile_showcase_proto_rawDesc -) - -func file_profile_showcase_proto_rawDescGZIP() []byte { - file_profile_showcase_proto_rawDescOnce.Do(func() { - file_profile_showcase_proto_rawDescData = protoimpl.X.CompressGZIP(file_profile_showcase_proto_rawDescData) - }) - return file_profile_showcase_proto_rawDescData +func init() { + proto.RegisterFile("profile_showcase.proto", fileDescriptor_5bcd51b424a05798) } -var file_profile_showcase_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_profile_showcase_proto_msgTypes = make([]protoimpl.MessageInfo, 16) -var file_profile_showcase_proto_goTypes = []interface{}{ - (ProfileShowcaseVisibility)(0), // 0: protobuf.ProfileShowcaseVisibility - (*ProfileShowcaseCommunity)(nil), // 1: protobuf.ProfileShowcaseCommunity - (*ProfileShowcaseAccount)(nil), // 2: protobuf.ProfileShowcaseAccount - (*ProfileShowcaseCollectible)(nil), // 3: protobuf.ProfileShowcaseCollectible - (*ProfileShowcaseVerifiedToken)(nil), // 4: protobuf.ProfileShowcaseVerifiedToken - (*ProfileShowcaseUnverifiedToken)(nil), // 5: protobuf.ProfileShowcaseUnverifiedToken - (*ProfileShowcaseSocialLink)(nil), // 6: protobuf.ProfileShowcaseSocialLink - (*ProfileShowcaseEntries)(nil), // 7: protobuf.ProfileShowcaseEntries - (*ProfileShowcaseEntriesEncrypted)(nil), // 8: protobuf.ProfileShowcaseEntriesEncrypted - (*ProfileShowcase)(nil), // 9: protobuf.ProfileShowcase - (*ProfileShowcaseCommunityPreference)(nil), // 10: protobuf.ProfileShowcaseCommunityPreference - (*ProfileShowcaseAccountPreference)(nil), // 11: protobuf.ProfileShowcaseAccountPreference - (*ProfileShowcaseCollectiblePreference)(nil), // 12: protobuf.ProfileShowcaseCollectiblePreference - (*ProfileShowcaseVerifiedTokenPreference)(nil), // 13: protobuf.ProfileShowcaseVerifiedTokenPreference - (*ProfileShowcaseUnverifiedTokenPreference)(nil), // 14: protobuf.ProfileShowcaseUnverifiedTokenPreference - (*ProfileShowcaseSocialLinkPreference)(nil), // 15: protobuf.ProfileShowcaseSocialLinkPreference - (*SyncProfileShowcasePreferences)(nil), // 16: protobuf.SyncProfileShowcasePreferences -} -var file_profile_showcase_proto_depIdxs = []int32{ - 1, // 0: protobuf.ProfileShowcaseEntries.communities:type_name -> protobuf.ProfileShowcaseCommunity - 2, // 1: protobuf.ProfileShowcaseEntries.accounts:type_name -> protobuf.ProfileShowcaseAccount - 3, // 2: protobuf.ProfileShowcaseEntries.collectibles:type_name -> protobuf.ProfileShowcaseCollectible - 4, // 3: protobuf.ProfileShowcaseEntries.verified_tokens:type_name -> protobuf.ProfileShowcaseVerifiedToken - 5, // 4: protobuf.ProfileShowcaseEntries.unverified_tokens:type_name -> protobuf.ProfileShowcaseUnverifiedToken - 6, // 5: protobuf.ProfileShowcaseEntries.social_links:type_name -> protobuf.ProfileShowcaseSocialLink - 7, // 6: protobuf.ProfileShowcase.for_everyone:type_name -> protobuf.ProfileShowcaseEntries - 8, // 7: protobuf.ProfileShowcase.for_contacts:type_name -> protobuf.ProfileShowcaseEntriesEncrypted - 8, // 8: protobuf.ProfileShowcase.for_id_verified_contacts:type_name -> protobuf.ProfileShowcaseEntriesEncrypted - 0, // 9: protobuf.ProfileShowcaseCommunityPreference.showcase_visibility:type_name -> protobuf.ProfileShowcaseVisibility - 0, // 10: protobuf.ProfileShowcaseAccountPreference.showcase_visibility:type_name -> protobuf.ProfileShowcaseVisibility - 0, // 11: protobuf.ProfileShowcaseCollectiblePreference.showcase_visibility:type_name -> protobuf.ProfileShowcaseVisibility - 0, // 12: protobuf.ProfileShowcaseVerifiedTokenPreference.showcase_visibility:type_name -> protobuf.ProfileShowcaseVisibility - 0, // 13: protobuf.ProfileShowcaseUnverifiedTokenPreference.showcase_visibility:type_name -> protobuf.ProfileShowcaseVisibility - 0, // 14: protobuf.ProfileShowcaseSocialLinkPreference.showcase_visibility:type_name -> protobuf.ProfileShowcaseVisibility - 10, // 15: protobuf.SyncProfileShowcasePreferences.communities:type_name -> protobuf.ProfileShowcaseCommunityPreference - 11, // 16: protobuf.SyncProfileShowcasePreferences.accounts:type_name -> protobuf.ProfileShowcaseAccountPreference - 12, // 17: protobuf.SyncProfileShowcasePreferences.collectibles:type_name -> protobuf.ProfileShowcaseCollectiblePreference - 13, // 18: protobuf.SyncProfileShowcasePreferences.verified_tokens:type_name -> protobuf.ProfileShowcaseVerifiedTokenPreference - 14, // 19: protobuf.SyncProfileShowcasePreferences.unverified_tokens:type_name -> protobuf.ProfileShowcaseUnverifiedTokenPreference - 15, // 20: protobuf.SyncProfileShowcasePreferences.social_links:type_name -> protobuf.ProfileShowcaseSocialLinkPreference - 21, // [21:21] is the sub-list for method output_type - 21, // [21:21] is the sub-list for method input_type - 21, // [21:21] is the sub-list for extension type_name - 21, // [21:21] is the sub-list for extension extendee - 0, // [0:21] is the sub-list for field type_name -} - -func init() { file_profile_showcase_proto_init() } -func file_profile_showcase_proto_init() { - if File_profile_showcase_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_profile_showcase_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseCommunity); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseAccount); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseCollectible); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseVerifiedToken); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseUnverifiedToken); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseSocialLink); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseEntries); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseEntriesEncrypted); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcase); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseCommunityPreference); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseAccountPreference); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseCollectiblePreference); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseVerifiedTokenPreference); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseUnverifiedTokenPreference); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileShowcaseSocialLinkPreference); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_profile_showcase_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncProfileShowcasePreferences); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_profile_showcase_proto_rawDesc, - NumEnums: 1, - NumMessages: 16, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_profile_showcase_proto_goTypes, - DependencyIndexes: file_profile_showcase_proto_depIdxs, - EnumInfos: file_profile_showcase_proto_enumTypes, - MessageInfos: file_profile_showcase_proto_msgTypes, - }.Build() - File_profile_showcase_proto = out.File - file_profile_showcase_proto_rawDesc = nil - file_profile_showcase_proto_goTypes = nil - file_profile_showcase_proto_depIdxs = nil +var fileDescriptor_5bcd51b424a05798 = []byte{ + // 1062 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xcd, 0x6e, 0xdb, 0x46, + 0x10, 0x2e, 0x45, 0xfd, 0x38, 0x23, 0xc5, 0x52, 0xb6, 0xa9, 0xc1, 0x14, 0x45, 0xaa, 0x32, 0x86, + 0xa3, 0xa4, 0xad, 0x52, 0x24, 0xc7, 0xf6, 0x62, 0xcb, 0x34, 0x42, 0x54, 0xb0, 0x8c, 0x95, 0xa2, + 0xc0, 0xbd, 0x10, 0x12, 0xb5, 0x6a, 0x58, 0x51, 0x5c, 0x83, 0xa4, 0x9c, 0xea, 0x0d, 0x7a, 0xe9, + 0x33, 0xf4, 0x05, 0x7a, 0x28, 0xd0, 0x43, 0x8f, 0x7d, 0x81, 0x9e, 0xfb, 0x16, 0x3d, 0xf6, 0xdc, + 0x82, 0xbb, 0x24, 0xb5, 0xa4, 0x48, 0x49, 0x01, 0xec, 0x9c, 0xc8, 0xd9, 0x9f, 0x6f, 0x67, 0xbe, + 0x99, 0xdd, 0xf9, 0xe0, 0xe0, 0xca, 0xa5, 0x53, 0xcb, 0x26, 0x86, 0xf7, 0x86, 0xbe, 0x35, 0x47, + 0x1e, 0x69, 0x5f, 0xb9, 0xd4, 0xa7, 0x68, 0x8f, 0x7d, 0xc6, 0x8b, 0xa9, 0x6a, 0x81, 0x72, 0xc1, + 0xd7, 0xf4, 0xc3, 0x25, 0x1d, 0x3a, 0x9f, 0x2f, 0x1c, 0xcb, 0x5f, 0xa2, 0xcf, 0xa0, 0x66, 0x46, + 0x86, 0x61, 0x4d, 0x14, 0xa9, 0x29, 0xb5, 0xee, 0xe0, 0x6a, 0x3c, 0xa6, 0x4f, 0xd0, 0x7d, 0x28, + 0x51, 0x77, 0x42, 0x5c, 0xa5, 0xd0, 0x94, 0x5a, 0x77, 0x31, 0x37, 0x82, 0xd1, 0xef, 0xdd, 0x91, + 0xe3, 0x2b, 0x72, 0x53, 0x6a, 0xd5, 0x30, 0x37, 0xd4, 0x9f, 0x25, 0x38, 0x48, 0x9d, 0x75, 0x6c, + 0x9a, 0x74, 0xe1, 0xf8, 0x48, 0x81, 0xca, 0x68, 0x32, 0x71, 0x89, 0xe7, 0x85, 0x87, 0x44, 0x26, + 0x42, 0x50, 0x74, 0x46, 0x73, 0xc2, 0xf0, 0xef, 0x60, 0xf6, 0x8f, 0x1e, 0xc0, 0x9e, 0x49, 0x6d, + 0xea, 0x06, 0x3e, 0xc9, 0x7c, 0x39, 0xb3, 0xb9, 0x3f, 0x64, 0x4e, 0x7f, 0xb0, 0x94, 0x22, 0x1b, + 0xe7, 0xc6, 0xca, 0xcb, 0x92, 0xe0, 0xa5, 0xfa, 0xaf, 0x04, 0x1f, 0xaf, 0xc5, 0x6e, 0xdb, 0xc4, + 0xf4, 0xad, 0xb1, 0x4d, 0xd0, 0x7d, 0x90, 0x17, 0x51, 0xd0, 0x27, 0x05, 0x45, 0xc2, 0x81, 0x99, + 0x13, 0xf0, 0x13, 0x68, 0x98, 0xd4, 0xf1, 0xdd, 0x91, 0xe9, 0x1b, 0x51, 0x20, 0xdc, 0xb3, 0x7a, + 0x34, 0x7e, 0x1c, 0x06, 0x94, 0x26, 0xb5, 0xb8, 0x4e, 0x6a, 0x10, 0xdf, 0x9b, 0x91, 0xe5, 0x04, + 0xd3, 0x81, 0xc7, 0x45, 0x5c, 0x61, 0x36, 0x9f, 0xf2, 0xe9, 0x8c, 0xb0, 0xa9, 0x32, 0x0f, 0x9d, + 0xd9, 0xfa, 0x04, 0x3d, 0x86, 0xfa, 0x88, 0xd3, 0x19, 0xbb, 0x50, 0x61, 0x2b, 0xf6, 0xc3, 0xe1, + 0xd0, 0x03, 0xb5, 0x0b, 0x9f, 0xa4, 0xc2, 0x1e, 0x12, 0xd7, 0x9a, 0x5a, 0x64, 0x32, 0x08, 0xa0, + 0xd0, 0x01, 0x94, 0xbd, 0xe5, 0x7c, 0x4c, 0xed, 0x30, 0x17, 0xa1, 0x95, 0x1d, 0xba, 0xfa, 0x8b, + 0x04, 0x0f, 0x53, 0x70, 0xaf, 0x9c, 0xeb, 0x04, 0x60, 0x16, 0x3b, 0x52, 0x36, 0x3b, 0xd9, 0xf4, + 0x8a, 0x84, 0xc8, 0x49, 0x42, 0xb6, 0xd3, 0xa9, 0xbe, 0x86, 0x07, 0x29, 0x07, 0xfb, 0xd4, 0xb4, + 0x46, 0x76, 0xd7, 0x72, 0x66, 0xa8, 0x01, 0xf2, 0xc2, 0x8d, 0x22, 0x0d, 0x7e, 0x73, 0x5c, 0x40, + 0x50, 0xf4, 0xc9, 0x8f, 0x7e, 0x98, 0x55, 0xf6, 0xaf, 0xfe, 0x2d, 0xaf, 0x15, 0xb4, 0xe6, 0xf8, + 0xae, 0x45, 0x3c, 0x74, 0x0a, 0xb1, 0x0b, 0x16, 0x09, 0xa2, 0x95, 0x5b, 0xd5, 0xe7, 0x6a, 0x3b, + 0xba, 0x76, 0xed, 0xbc, 0x3b, 0x87, 0xc5, 0x6d, 0xe8, 0x1b, 0xd8, 0x0b, 0x73, 0xe7, 0x29, 0x05, + 0x06, 0xd1, 0xcc, 0x85, 0x08, 0xaf, 0x12, 0x8e, 0x77, 0xa0, 0x97, 0x01, 0x35, 0x71, 0x3d, 0x07, + 0x05, 0x19, 0x20, 0x1c, 0x6e, 0x70, 0x22, 0x5e, 0x8c, 0x13, 0x3b, 0x51, 0x0f, 0xea, 0x51, 0x46, + 0x0d, 0x56, 0x6e, 0x9e, 0x52, 0x64, 0x60, 0x47, 0xb9, 0x60, 0x89, 0x92, 0xc2, 0xfb, 0x89, 0x82, + 0xf0, 0xd0, 0x2b, 0xb8, 0xb7, 0x70, 0xd2, 0x90, 0x25, 0x06, 0xd9, 0xca, 0x85, 0x4c, 0x95, 0x15, + 0x6e, 0x2c, 0x9c, 0x14, 0xec, 0x19, 0xd4, 0x3c, 0x96, 0x5a, 0xc3, 0xb6, 0x9c, 0x99, 0xa7, 0x94, + 0x19, 0xe2, 0xa3, 0x5c, 0xc4, 0x55, 0x1d, 0xe0, 0xaa, 0x17, 0xff, 0x7b, 0xea, 0x5b, 0xf8, 0x34, + 0x3b, 0xaf, 0x9a, 0x63, 0xba, 0xcb, 0x2b, 0x9f, 0x4c, 0xd0, 0xe7, 0x70, 0x8f, 0x44, 0x86, 0x41, + 0xf8, 0x2c, 0xab, 0xa2, 0x1a, 0x6e, 0xc4, 0x13, 0x51, 0x35, 0x3c, 0x86, 0x7a, 0x38, 0x66, 0x51, + 0xc7, 0x98, 0x91, 0x25, 0x4f, 0x67, 0x0d, 0xef, 0xaf, 0x86, 0xbf, 0x25, 0x4b, 0x4f, 0xfd, 0xa9, + 0x00, 0xf5, 0xd4, 0xc9, 0xa8, 0x03, 0xb5, 0x29, 0x75, 0x0d, 0x72, 0x4d, 0xdc, 0x25, 0x75, 0x08, + 0x3b, 0x64, 0x53, 0x21, 0x84, 0x87, 0xe2, 0xea, 0x94, 0xba, 0x5a, 0xb8, 0x09, 0x75, 0x39, 0x48, + 0x70, 0xdd, 0x46, 0x26, 0xab, 0xa6, 0x00, 0xe4, 0xc9, 0x36, 0x90, 0x38, 0x5e, 0x86, 0xd6, 0x09, + 0x77, 0xa3, 0x31, 0x28, 0x53, 0xf6, 0xfc, 0x1a, 0x71, 0x0e, 0x63, 0x64, 0xf9, 0x5d, 0x91, 0x3f, + 0x9a, 0x06, 0x2f, 0x77, 0x54, 0x2f, 0xd1, 0x19, 0xea, 0xef, 0x12, 0xa8, 0x79, 0xb7, 0xe4, 0xc2, + 0x25, 0x53, 0xe2, 0x12, 0xc7, 0x24, 0xbb, 0xf4, 0xa8, 0x01, 0x7c, 0x18, 0xb5, 0x3f, 0xe3, 0xda, + 0xf2, 0xac, 0xb1, 0x65, 0x5b, 0xfe, 0x92, 0x51, 0xb0, 0xbf, 0xa1, 0x38, 0x86, 0xf1, 0x52, 0x8c, + 0xbc, 0xb5, 0xb1, 0xd5, 0x33, 0x21, 0x8b, 0xaf, 0xe1, 0x3f, 0x12, 0x34, 0xb3, 0x2f, 0xa6, 0xe0, + 0xf3, 0x2d, 0x77, 0xbb, 0x9c, 0x78, 0x4b, 0x37, 0x14, 0x6f, 0x59, 0x8c, 0xf7, 0xcf, 0x02, 0x1c, + 0xe6, 0x3f, 0x23, 0x42, 0xcc, 0xef, 0xd0, 0x03, 0xc4, 0xd7, 0xbe, 0x90, 0xdf, 0xfe, 0xe4, 0x64, + 0xfb, 0xdb, 0xa1, 0xaf, 0x66, 0x74, 0xc8, 0x52, 0x56, 0x87, 0xcc, 0x63, 0xb0, 0x7c, 0x43, 0x0c, + 0x56, 0x44, 0x06, 0x7f, 0x95, 0xe0, 0x68, 0xd3, 0xdb, 0x29, 0x70, 0x98, 0xd7, 0x98, 0xdf, 0x67, + 0x81, 0xff, 0x27, 0x41, 0x6b, 0xf3, 0xbb, 0x7c, 0xe3, 0x49, 0x4f, 0x67, 0x56, 0xde, 0xf9, 0x8a, + 0x17, 0x6f, 0x88, 0x81, 0x84, 0x6c, 0xfc, 0x43, 0x82, 0x47, 0xb9, 0x7d, 0x44, 0x08, 0x7e, 0x5d, + 0x59, 0x44, 0x1a, 0xa2, 0xb0, 0xd2, 0x10, 0xd9, 0x2c, 0xdf, 0x4e, 0x3c, 0xea, 0x6f, 0x45, 0x78, + 0xd8, 0x5f, 0x3a, 0x66, 0x6a, 0xd7, 0xca, 0x67, 0xa6, 0xbf, 0x4c, 0x9b, 0x9a, 0x33, 0xe6, 0x76, + 0x11, 0x73, 0x03, 0x9d, 0x27, 0xd5, 0x0c, 0x97, 0x22, 0x5f, 0x6c, 0x57, 0x33, 0x2b, 0xe4, 0xa4, + 0xae, 0x39, 0x13, 0x74, 0x0d, 0x57, 0x25, 0x4f, 0xb7, 0xe9, 0x1a, 0x01, 0x6a, 0xa5, 0x70, 0x70, + 0x4a, 0xe1, 0x70, 0x51, 0xd2, 0xde, 0x45, 0xe1, 0x08, 0x78, 0x49, 0xad, 0x73, 0xb9, 0xae, 0x75, + 0xb8, 0x30, 0xf9, 0x6a, 0x37, 0xad, 0x23, 0x00, 0xa7, 0x55, 0x8f, 0x91, 0xa5, 0x7a, 0xb8, 0x46, + 0x79, 0xbe, 0xab, 0xea, 0x11, 0xe0, 0xd7, 0xf5, 0xcf, 0x45, 0x4a, 0xff, 0x54, 0x18, 0xf6, 0x97, + 0x3b, 0xe8, 0x1f, 0x31, 0x53, 0x82, 0x12, 0x7a, 0xfa, 0x97, 0xb4, 0x26, 0x9e, 0x85, 0x0b, 0x72, + 0x04, 0xea, 0x05, 0xee, 0x9d, 0xe9, 0x5d, 0xcd, 0xe8, 0xbf, 0xec, 0xbd, 0xee, 0x1c, 0xf7, 0x35, + 0x63, 0xa8, 0xf7, 0xf5, 0x13, 0xbd, 0xab, 0x0f, 0x2e, 0x8d, 0xf3, 0x9e, 0xd1, 0x3b, 0xd7, 0x1a, + 0x1f, 0xa0, 0x17, 0xf0, 0x6c, 0xd3, 0x3a, 0xfd, 0x74, 0xa8, 0x61, 0xfd, 0x4c, 0xd7, 0x4e, 0x8d, + 0x4e, 0xef, 0x7c, 0x70, 0xdc, 0x19, 0xf4, 0x1b, 0x12, 0x6a, 0xc1, 0xe1, 0xa6, 0x4d, 0xf1, 0xca, + 0xc2, 0xb6, 0x95, 0xda, 0x50, 0xc3, 0x97, 0x81, 0x23, 0xf2, 0xc9, 0xdd, 0xef, 0xaa, 0xed, 0x67, + 0x5f, 0x47, 0x74, 0x8c, 0xcb, 0xec, 0xef, 0xc5, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x31, + 0xe2, 0x3b, 0x27, 0x0f, 0x00, 0x00, } diff --git a/protocol/protobuf/push_notifications.pb.go b/protocol/protobuf/push_notifications.pb.go index 210871906..9221ff0a9 100644 --- a/protocol/protobuf/push_notifications.pb.go +++ b/protocol/protobuf/push_notifications.pb.go @@ -1,24 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: push_notifications.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type PushNotificationRegistration_TokenType int32 @@ -28,45 +28,24 @@ const ( PushNotificationRegistration_FIREBASE_TOKEN PushNotificationRegistration_TokenType = 2 ) -// Enum value maps for PushNotificationRegistration_TokenType. -var ( - PushNotificationRegistration_TokenType_name = map[int32]string{ - 0: "UNKNOWN_TOKEN_TYPE", - 1: "APN_TOKEN", - 2: "FIREBASE_TOKEN", - } - PushNotificationRegistration_TokenType_value = map[string]int32{ - "UNKNOWN_TOKEN_TYPE": 0, - "APN_TOKEN": 1, - "FIREBASE_TOKEN": 2, - } -) +var PushNotificationRegistration_TokenType_name = map[int32]string{ + 0: "UNKNOWN_TOKEN_TYPE", + 1: "APN_TOKEN", + 2: "FIREBASE_TOKEN", +} -func (x PushNotificationRegistration_TokenType) Enum() *PushNotificationRegistration_TokenType { - p := new(PushNotificationRegistration_TokenType) - *p = x - return p +var PushNotificationRegistration_TokenType_value = map[string]int32{ + "UNKNOWN_TOKEN_TYPE": 0, + "APN_TOKEN": 1, + "FIREBASE_TOKEN": 2, } func (x PushNotificationRegistration_TokenType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(PushNotificationRegistration_TokenType_name, int32(x)) } -func (PushNotificationRegistration_TokenType) Descriptor() protoreflect.EnumDescriptor { - return file_push_notifications_proto_enumTypes[0].Descriptor() -} - -func (PushNotificationRegistration_TokenType) Type() protoreflect.EnumType { - return &file_push_notifications_proto_enumTypes[0] -} - -func (x PushNotificationRegistration_TokenType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use PushNotificationRegistration_TokenType.Descriptor instead. func (PushNotificationRegistration_TokenType) EnumDescriptor() ([]byte, []int) { - return file_push_notifications_proto_rawDescGZIP(), []int{0, 0} + return fileDescriptor_200acd86044eaa5d, []int{0, 0} } type PushNotificationRegistrationResponse_ErrorType int32 @@ -79,49 +58,28 @@ const ( PushNotificationRegistrationResponse_INTERNAL_ERROR PushNotificationRegistrationResponse_ErrorType = 4 ) -// Enum value maps for PushNotificationRegistrationResponse_ErrorType. -var ( - PushNotificationRegistrationResponse_ErrorType_name = map[int32]string{ - 0: "UNKNOWN_ERROR_TYPE", - 1: "MALFORMED_MESSAGE", - 2: "VERSION_MISMATCH", - 3: "UNSUPPORTED_TOKEN_TYPE", - 4: "INTERNAL_ERROR", - } - PushNotificationRegistrationResponse_ErrorType_value = map[string]int32{ - "UNKNOWN_ERROR_TYPE": 0, - "MALFORMED_MESSAGE": 1, - "VERSION_MISMATCH": 2, - "UNSUPPORTED_TOKEN_TYPE": 3, - "INTERNAL_ERROR": 4, - } -) +var PushNotificationRegistrationResponse_ErrorType_name = map[int32]string{ + 0: "UNKNOWN_ERROR_TYPE", + 1: "MALFORMED_MESSAGE", + 2: "VERSION_MISMATCH", + 3: "UNSUPPORTED_TOKEN_TYPE", + 4: "INTERNAL_ERROR", +} -func (x PushNotificationRegistrationResponse_ErrorType) Enum() *PushNotificationRegistrationResponse_ErrorType { - p := new(PushNotificationRegistrationResponse_ErrorType) - *p = x - return p +var PushNotificationRegistrationResponse_ErrorType_value = map[string]int32{ + "UNKNOWN_ERROR_TYPE": 0, + "MALFORMED_MESSAGE": 1, + "VERSION_MISMATCH": 2, + "UNSUPPORTED_TOKEN_TYPE": 3, + "INTERNAL_ERROR": 4, } func (x PushNotificationRegistrationResponse_ErrorType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(PushNotificationRegistrationResponse_ErrorType_name, int32(x)) } -func (PushNotificationRegistrationResponse_ErrorType) Descriptor() protoreflect.EnumDescriptor { - return file_push_notifications_proto_enumTypes[1].Descriptor() -} - -func (PushNotificationRegistrationResponse_ErrorType) Type() protoreflect.EnumType { - return &file_push_notifications_proto_enumTypes[1] -} - -func (x PushNotificationRegistrationResponse_ErrorType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use PushNotificationRegistrationResponse_ErrorType.Descriptor instead. func (PushNotificationRegistrationResponse_ErrorType) EnumDescriptor() ([]byte, []int) { - return file_push_notifications_proto_rawDescGZIP(), []int{1, 0} + return fileDescriptor_200acd86044eaa5d, []int{1, 0} } type PushNotification_PushNotificationType int32 @@ -133,47 +91,26 @@ const ( PushNotification_REQUEST_TO_JOIN_COMMUNITY PushNotification_PushNotificationType = 3 ) -// Enum value maps for PushNotification_PushNotificationType. -var ( - PushNotification_PushNotificationType_name = map[int32]string{ - 0: "UNKNOWN_PUSH_NOTIFICATION_TYPE", - 1: "MESSAGE", - 2: "MENTION", - 3: "REQUEST_TO_JOIN_COMMUNITY", - } - PushNotification_PushNotificationType_value = map[string]int32{ - "UNKNOWN_PUSH_NOTIFICATION_TYPE": 0, - "MESSAGE": 1, - "MENTION": 2, - "REQUEST_TO_JOIN_COMMUNITY": 3, - } -) +var PushNotification_PushNotificationType_name = map[int32]string{ + 0: "UNKNOWN_PUSH_NOTIFICATION_TYPE", + 1: "MESSAGE", + 2: "MENTION", + 3: "REQUEST_TO_JOIN_COMMUNITY", +} -func (x PushNotification_PushNotificationType) Enum() *PushNotification_PushNotificationType { - p := new(PushNotification_PushNotificationType) - *p = x - return p +var PushNotification_PushNotificationType_value = map[string]int32{ + "UNKNOWN_PUSH_NOTIFICATION_TYPE": 0, + "MESSAGE": 1, + "MENTION": 2, + "REQUEST_TO_JOIN_COMMUNITY": 3, } func (x PushNotification_PushNotificationType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(PushNotification_PushNotificationType_name, int32(x)) } -func (PushNotification_PushNotificationType) Descriptor() protoreflect.EnumDescriptor { - return file_push_notifications_proto_enumTypes[2].Descriptor() -} - -func (PushNotification_PushNotificationType) Type() protoreflect.EnumType { - return &file_push_notifications_proto_enumTypes[2] -} - -func (x PushNotification_PushNotificationType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use PushNotification_PushNotificationType.Descriptor instead. func (PushNotification_PushNotificationType) EnumDescriptor() ([]byte, []int) { - return file_push_notifications_proto_rawDescGZIP(), []int{6, 0} + return fileDescriptor_200acd86044eaa5d, []int{6, 0} } type PushNotificationReport_ErrorType int32 @@ -185,54 +122,29 @@ const ( PushNotificationReport_NOT_REGISTERED PushNotificationReport_ErrorType = 3 ) -// Enum value maps for PushNotificationReport_ErrorType. -var ( - PushNotificationReport_ErrorType_name = map[int32]string{ - 0: "UNKNOWN_ERROR_TYPE", - 1: "WRONG_TOKEN", - 2: "INTERNAL_ERROR", - 3: "NOT_REGISTERED", - } - PushNotificationReport_ErrorType_value = map[string]int32{ - "UNKNOWN_ERROR_TYPE": 0, - "WRONG_TOKEN": 1, - "INTERNAL_ERROR": 2, - "NOT_REGISTERED": 3, - } -) +var PushNotificationReport_ErrorType_name = map[int32]string{ + 0: "UNKNOWN_ERROR_TYPE", + 1: "WRONG_TOKEN", + 2: "INTERNAL_ERROR", + 3: "NOT_REGISTERED", +} -func (x PushNotificationReport_ErrorType) Enum() *PushNotificationReport_ErrorType { - p := new(PushNotificationReport_ErrorType) - *p = x - return p +var PushNotificationReport_ErrorType_value = map[string]int32{ + "UNKNOWN_ERROR_TYPE": 0, + "WRONG_TOKEN": 1, + "INTERNAL_ERROR": 2, + "NOT_REGISTERED": 3, } func (x PushNotificationReport_ErrorType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(PushNotificationReport_ErrorType_name, int32(x)) } -func (PushNotificationReport_ErrorType) Descriptor() protoreflect.EnumDescriptor { - return file_push_notifications_proto_enumTypes[3].Descriptor() -} - -func (PushNotificationReport_ErrorType) Type() protoreflect.EnumType { - return &file_push_notifications_proto_enumTypes[3] -} - -func (x PushNotificationReport_ErrorType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use PushNotificationReport_ErrorType.Descriptor instead. func (PushNotificationReport_ErrorType) EnumDescriptor() ([]byte, []int) { - return file_push_notifications_proto_rawDescGZIP(), []int{8, 0} + return fileDescriptor_200acd86044eaa5d, []int{8, 0} } type PushNotificationRegistration struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - TokenType PushNotificationRegistration_TokenType `protobuf:"varint,1,opt,name=token_type,json=tokenType,proto3,enum=protobuf.PushNotificationRegistration_TokenType" json:"token_type,omitempty"` DeviceToken string `protobuf:"bytes,2,opt,name=device_token,json=deviceToken,proto3" json:"device_token,omitempty"` InstallationId string `protobuf:"bytes,3,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"` @@ -248,1109 +160,757 @@ type PushNotificationRegistration struct { BlockMentions bool `protobuf:"varint,13,opt,name=block_mentions,json=blockMentions,proto3" json:"block_mentions,omitempty"` AllowedMentionsChatList [][]byte `protobuf:"bytes,14,rep,name=allowed_mentions_chat_list,json=allowedMentionsChatList,proto3" json:"allowed_mentions_chat_list,omitempty"` MutedChatList [][]byte `protobuf:"bytes,15,rep,name=muted_chat_list,json=mutedChatList,proto3" json:"muted_chat_list,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *PushNotificationRegistration) Reset() { - *x = PushNotificationRegistration{} - if protoimpl.UnsafeEnabled { - mi := &file_push_notifications_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PushNotificationRegistration) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PushNotificationRegistration) ProtoMessage() {} - -func (x *PushNotificationRegistration) ProtoReflect() protoreflect.Message { - mi := &file_push_notifications_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PushNotificationRegistration.ProtoReflect.Descriptor instead. +func (m *PushNotificationRegistration) Reset() { *m = PushNotificationRegistration{} } +func (m *PushNotificationRegistration) String() string { return proto.CompactTextString(m) } +func (*PushNotificationRegistration) ProtoMessage() {} func (*PushNotificationRegistration) Descriptor() ([]byte, []int) { - return file_push_notifications_proto_rawDescGZIP(), []int{0} + return fileDescriptor_200acd86044eaa5d, []int{0} } -func (x *PushNotificationRegistration) GetTokenType() PushNotificationRegistration_TokenType { - if x != nil { - return x.TokenType +func (m *PushNotificationRegistration) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PushNotificationRegistration.Unmarshal(m, b) +} +func (m *PushNotificationRegistration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PushNotificationRegistration.Marshal(b, m, deterministic) +} +func (m *PushNotificationRegistration) XXX_Merge(src proto.Message) { + xxx_messageInfo_PushNotificationRegistration.Merge(m, src) +} +func (m *PushNotificationRegistration) XXX_Size() int { + return xxx_messageInfo_PushNotificationRegistration.Size(m) +} +func (m *PushNotificationRegistration) XXX_DiscardUnknown() { + xxx_messageInfo_PushNotificationRegistration.DiscardUnknown(m) +} + +var xxx_messageInfo_PushNotificationRegistration proto.InternalMessageInfo + +func (m *PushNotificationRegistration) GetTokenType() PushNotificationRegistration_TokenType { + if m != nil { + return m.TokenType } return PushNotificationRegistration_UNKNOWN_TOKEN_TYPE } -func (x *PushNotificationRegistration) GetDeviceToken() string { - if x != nil { - return x.DeviceToken +func (m *PushNotificationRegistration) GetDeviceToken() string { + if m != nil { + return m.DeviceToken } return "" } -func (x *PushNotificationRegistration) GetInstallationId() string { - if x != nil { - return x.InstallationId +func (m *PushNotificationRegistration) GetInstallationId() string { + if m != nil { + return m.InstallationId } return "" } -func (x *PushNotificationRegistration) GetAccessToken() string { - if x != nil { - return x.AccessToken +func (m *PushNotificationRegistration) GetAccessToken() string { + if m != nil { + return m.AccessToken } return "" } -func (x *PushNotificationRegistration) GetEnabled() bool { - if x != nil { - return x.Enabled +func (m *PushNotificationRegistration) GetEnabled() bool { + if m != nil { + return m.Enabled } return false } -func (x *PushNotificationRegistration) GetVersion() uint64 { - if x != nil { - return x.Version +func (m *PushNotificationRegistration) GetVersion() uint64 { + if m != nil { + return m.Version } return 0 } -func (x *PushNotificationRegistration) GetAllowedKeyList() [][]byte { - if x != nil { - return x.AllowedKeyList +func (m *PushNotificationRegistration) GetAllowedKeyList() [][]byte { + if m != nil { + return m.AllowedKeyList } return nil } -func (x *PushNotificationRegistration) GetBlockedChatList() [][]byte { - if x != nil { - return x.BlockedChatList +func (m *PushNotificationRegistration) GetBlockedChatList() [][]byte { + if m != nil { + return m.BlockedChatList } return nil } -func (x *PushNotificationRegistration) GetUnregister() bool { - if x != nil { - return x.Unregister +func (m *PushNotificationRegistration) GetUnregister() bool { + if m != nil { + return m.Unregister } return false } -func (x *PushNotificationRegistration) GetGrant() []byte { - if x != nil { - return x.Grant +func (m *PushNotificationRegistration) GetGrant() []byte { + if m != nil { + return m.Grant } return nil } -func (x *PushNotificationRegistration) GetAllowFromContactsOnly() bool { - if x != nil { - return x.AllowFromContactsOnly +func (m *PushNotificationRegistration) GetAllowFromContactsOnly() bool { + if m != nil { + return m.AllowFromContactsOnly } return false } -func (x *PushNotificationRegistration) GetApnTopic() string { - if x != nil { - return x.ApnTopic +func (m *PushNotificationRegistration) GetApnTopic() string { + if m != nil { + return m.ApnTopic } return "" } -func (x *PushNotificationRegistration) GetBlockMentions() bool { - if x != nil { - return x.BlockMentions +func (m *PushNotificationRegistration) GetBlockMentions() bool { + if m != nil { + return m.BlockMentions } return false } -func (x *PushNotificationRegistration) GetAllowedMentionsChatList() [][]byte { - if x != nil { - return x.AllowedMentionsChatList +func (m *PushNotificationRegistration) GetAllowedMentionsChatList() [][]byte { + if m != nil { + return m.AllowedMentionsChatList } return nil } -func (x *PushNotificationRegistration) GetMutedChatList() [][]byte { - if x != nil { - return x.MutedChatList +func (m *PushNotificationRegistration) GetMutedChatList() [][]byte { + if m != nil { + return m.MutedChatList } return nil } type PushNotificationRegistrationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` - Error PushNotificationRegistrationResponse_ErrorType `protobuf:"varint,2,opt,name=error,proto3,enum=protobuf.PushNotificationRegistrationResponse_ErrorType" json:"error,omitempty"` - RequestId []byte `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + Error PushNotificationRegistrationResponse_ErrorType `protobuf:"varint,2,opt,name=error,proto3,enum=protobuf.PushNotificationRegistrationResponse_ErrorType" json:"error,omitempty"` + RequestId []byte `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *PushNotificationRegistrationResponse) Reset() { - *x = PushNotificationRegistrationResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_push_notifications_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PushNotificationRegistrationResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PushNotificationRegistrationResponse) ProtoMessage() {} - -func (x *PushNotificationRegistrationResponse) ProtoReflect() protoreflect.Message { - mi := &file_push_notifications_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PushNotificationRegistrationResponse.ProtoReflect.Descriptor instead. +func (m *PushNotificationRegistrationResponse) Reset() { *m = PushNotificationRegistrationResponse{} } +func (m *PushNotificationRegistrationResponse) String() string { return proto.CompactTextString(m) } +func (*PushNotificationRegistrationResponse) ProtoMessage() {} func (*PushNotificationRegistrationResponse) Descriptor() ([]byte, []int) { - return file_push_notifications_proto_rawDescGZIP(), []int{1} + return fileDescriptor_200acd86044eaa5d, []int{1} } -func (x *PushNotificationRegistrationResponse) GetSuccess() bool { - if x != nil { - return x.Success +func (m *PushNotificationRegistrationResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PushNotificationRegistrationResponse.Unmarshal(m, b) +} +func (m *PushNotificationRegistrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PushNotificationRegistrationResponse.Marshal(b, m, deterministic) +} +func (m *PushNotificationRegistrationResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PushNotificationRegistrationResponse.Merge(m, src) +} +func (m *PushNotificationRegistrationResponse) XXX_Size() int { + return xxx_messageInfo_PushNotificationRegistrationResponse.Size(m) +} +func (m *PushNotificationRegistrationResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PushNotificationRegistrationResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_PushNotificationRegistrationResponse proto.InternalMessageInfo + +func (m *PushNotificationRegistrationResponse) GetSuccess() bool { + if m != nil { + return m.Success } return false } -func (x *PushNotificationRegistrationResponse) GetError() PushNotificationRegistrationResponse_ErrorType { - if x != nil { - return x.Error +func (m *PushNotificationRegistrationResponse) GetError() PushNotificationRegistrationResponse_ErrorType { + if m != nil { + return m.Error } return PushNotificationRegistrationResponse_UNKNOWN_ERROR_TYPE } -func (x *PushNotificationRegistrationResponse) GetRequestId() []byte { - if x != nil { - return x.RequestId +func (m *PushNotificationRegistrationResponse) GetRequestId() []byte { + if m != nil { + return m.RequestId } return nil } type ContactCodeAdvertisement struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - PushNotificationInfo []*PushNotificationQueryInfo `protobuf:"bytes,1,rep,name=push_notification_info,json=pushNotificationInfo,proto3" json:"push_notification_info,omitempty"` ChatIdentity *ChatIdentity `protobuf:"bytes,2,opt,name=chat_identity,json=chatIdentity,proto3" json:"chat_identity,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ContactCodeAdvertisement) Reset() { - *x = ContactCodeAdvertisement{} - if protoimpl.UnsafeEnabled { - mi := &file_push_notifications_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ContactCodeAdvertisement) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ContactCodeAdvertisement) ProtoMessage() {} - -func (x *ContactCodeAdvertisement) ProtoReflect() protoreflect.Message { - mi := &file_push_notifications_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ContactCodeAdvertisement.ProtoReflect.Descriptor instead. +func (m *ContactCodeAdvertisement) Reset() { *m = ContactCodeAdvertisement{} } +func (m *ContactCodeAdvertisement) String() string { return proto.CompactTextString(m) } +func (*ContactCodeAdvertisement) ProtoMessage() {} func (*ContactCodeAdvertisement) Descriptor() ([]byte, []int) { - return file_push_notifications_proto_rawDescGZIP(), []int{2} + return fileDescriptor_200acd86044eaa5d, []int{2} } -func (x *ContactCodeAdvertisement) GetPushNotificationInfo() []*PushNotificationQueryInfo { - if x != nil { - return x.PushNotificationInfo +func (m *ContactCodeAdvertisement) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContactCodeAdvertisement.Unmarshal(m, b) +} +func (m *ContactCodeAdvertisement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContactCodeAdvertisement.Marshal(b, m, deterministic) +} +func (m *ContactCodeAdvertisement) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContactCodeAdvertisement.Merge(m, src) +} +func (m *ContactCodeAdvertisement) XXX_Size() int { + return xxx_messageInfo_ContactCodeAdvertisement.Size(m) +} +func (m *ContactCodeAdvertisement) XXX_DiscardUnknown() { + xxx_messageInfo_ContactCodeAdvertisement.DiscardUnknown(m) +} + +var xxx_messageInfo_ContactCodeAdvertisement proto.InternalMessageInfo + +func (m *ContactCodeAdvertisement) GetPushNotificationInfo() []*PushNotificationQueryInfo { + if m != nil { + return m.PushNotificationInfo } return nil } -func (x *ContactCodeAdvertisement) GetChatIdentity() *ChatIdentity { - if x != nil { - return x.ChatIdentity +func (m *ContactCodeAdvertisement) GetChatIdentity() *ChatIdentity { + if m != nil { + return m.ChatIdentity } return nil } type PushNotificationQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` + PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *PushNotificationQuery) Reset() { - *x = PushNotificationQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_push_notifications_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PushNotificationQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PushNotificationQuery) ProtoMessage() {} - -func (x *PushNotificationQuery) ProtoReflect() protoreflect.Message { - mi := &file_push_notifications_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PushNotificationQuery.ProtoReflect.Descriptor instead. +func (m *PushNotificationQuery) Reset() { *m = PushNotificationQuery{} } +func (m *PushNotificationQuery) String() string { return proto.CompactTextString(m) } +func (*PushNotificationQuery) ProtoMessage() {} func (*PushNotificationQuery) Descriptor() ([]byte, []int) { - return file_push_notifications_proto_rawDescGZIP(), []int{3} + return fileDescriptor_200acd86044eaa5d, []int{3} } -func (x *PushNotificationQuery) GetPublicKeys() [][]byte { - if x != nil { - return x.PublicKeys +func (m *PushNotificationQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PushNotificationQuery.Unmarshal(m, b) +} +func (m *PushNotificationQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PushNotificationQuery.Marshal(b, m, deterministic) +} +func (m *PushNotificationQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_PushNotificationQuery.Merge(m, src) +} +func (m *PushNotificationQuery) XXX_Size() int { + return xxx_messageInfo_PushNotificationQuery.Size(m) +} +func (m *PushNotificationQuery) XXX_DiscardUnknown() { + xxx_messageInfo_PushNotificationQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_PushNotificationQuery proto.InternalMessageInfo + +func (m *PushNotificationQuery) GetPublicKeys() [][]byte { + if m != nil { + return m.PublicKeys } return nil } type PushNotificationQueryInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` - InstallationId string `protobuf:"bytes,2,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"` - PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - AllowedKeyList [][]byte `protobuf:"bytes,4,rep,name=allowed_key_list,json=allowedKeyList,proto3" json:"allowed_key_list,omitempty"` - Grant []byte `protobuf:"bytes,5,opt,name=grant,proto3" json:"grant,omitempty"` - Version uint64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"` - ServerPublicKey []byte `protobuf:"bytes,7,opt,name=server_public_key,json=serverPublicKey,proto3" json:"server_public_key,omitempty"` + AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` + InstallationId string `protobuf:"bytes,2,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"` + PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + AllowedKeyList [][]byte `protobuf:"bytes,4,rep,name=allowed_key_list,json=allowedKeyList,proto3" json:"allowed_key_list,omitempty"` + Grant []byte `protobuf:"bytes,5,opt,name=grant,proto3" json:"grant,omitempty"` + Version uint64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"` + ServerPublicKey []byte `protobuf:"bytes,7,opt,name=server_public_key,json=serverPublicKey,proto3" json:"server_public_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *PushNotificationQueryInfo) Reset() { - *x = PushNotificationQueryInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_push_notifications_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PushNotificationQueryInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PushNotificationQueryInfo) ProtoMessage() {} - -func (x *PushNotificationQueryInfo) ProtoReflect() protoreflect.Message { - mi := &file_push_notifications_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PushNotificationQueryInfo.ProtoReflect.Descriptor instead. +func (m *PushNotificationQueryInfo) Reset() { *m = PushNotificationQueryInfo{} } +func (m *PushNotificationQueryInfo) String() string { return proto.CompactTextString(m) } +func (*PushNotificationQueryInfo) ProtoMessage() {} func (*PushNotificationQueryInfo) Descriptor() ([]byte, []int) { - return file_push_notifications_proto_rawDescGZIP(), []int{4} + return fileDescriptor_200acd86044eaa5d, []int{4} } -func (x *PushNotificationQueryInfo) GetAccessToken() string { - if x != nil { - return x.AccessToken +func (m *PushNotificationQueryInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PushNotificationQueryInfo.Unmarshal(m, b) +} +func (m *PushNotificationQueryInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PushNotificationQueryInfo.Marshal(b, m, deterministic) +} +func (m *PushNotificationQueryInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_PushNotificationQueryInfo.Merge(m, src) +} +func (m *PushNotificationQueryInfo) XXX_Size() int { + return xxx_messageInfo_PushNotificationQueryInfo.Size(m) +} +func (m *PushNotificationQueryInfo) XXX_DiscardUnknown() { + xxx_messageInfo_PushNotificationQueryInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_PushNotificationQueryInfo proto.InternalMessageInfo + +func (m *PushNotificationQueryInfo) GetAccessToken() string { + if m != nil { + return m.AccessToken } return "" } -func (x *PushNotificationQueryInfo) GetInstallationId() string { - if x != nil { - return x.InstallationId +func (m *PushNotificationQueryInfo) GetInstallationId() string { + if m != nil { + return m.InstallationId } return "" } -func (x *PushNotificationQueryInfo) GetPublicKey() []byte { - if x != nil { - return x.PublicKey +func (m *PushNotificationQueryInfo) GetPublicKey() []byte { + if m != nil { + return m.PublicKey } return nil } -func (x *PushNotificationQueryInfo) GetAllowedKeyList() [][]byte { - if x != nil { - return x.AllowedKeyList +func (m *PushNotificationQueryInfo) GetAllowedKeyList() [][]byte { + if m != nil { + return m.AllowedKeyList } return nil } -func (x *PushNotificationQueryInfo) GetGrant() []byte { - if x != nil { - return x.Grant +func (m *PushNotificationQueryInfo) GetGrant() []byte { + if m != nil { + return m.Grant } return nil } -func (x *PushNotificationQueryInfo) GetVersion() uint64 { - if x != nil { - return x.Version +func (m *PushNotificationQueryInfo) GetVersion() uint64 { + if m != nil { + return m.Version } return 0 } -func (x *PushNotificationQueryInfo) GetServerPublicKey() []byte { - if x != nil { - return x.ServerPublicKey +func (m *PushNotificationQueryInfo) GetServerPublicKey() []byte { + if m != nil { + return m.ServerPublicKey } return nil } type PushNotificationQueryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Info []*PushNotificationQueryInfo `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"` - MessageId []byte `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` - Success bool `protobuf:"varint,3,opt,name=success,proto3" json:"success,omitempty"` + Info []*PushNotificationQueryInfo `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"` + MessageId []byte `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` + Success bool `protobuf:"varint,3,opt,name=success,proto3" json:"success,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *PushNotificationQueryResponse) Reset() { - *x = PushNotificationQueryResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_push_notifications_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PushNotificationQueryResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PushNotificationQueryResponse) ProtoMessage() {} - -func (x *PushNotificationQueryResponse) ProtoReflect() protoreflect.Message { - mi := &file_push_notifications_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PushNotificationQueryResponse.ProtoReflect.Descriptor instead. +func (m *PushNotificationQueryResponse) Reset() { *m = PushNotificationQueryResponse{} } +func (m *PushNotificationQueryResponse) String() string { return proto.CompactTextString(m) } +func (*PushNotificationQueryResponse) ProtoMessage() {} func (*PushNotificationQueryResponse) Descriptor() ([]byte, []int) { - return file_push_notifications_proto_rawDescGZIP(), []int{5} + return fileDescriptor_200acd86044eaa5d, []int{5} } -func (x *PushNotificationQueryResponse) GetInfo() []*PushNotificationQueryInfo { - if x != nil { - return x.Info +func (m *PushNotificationQueryResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PushNotificationQueryResponse.Unmarshal(m, b) +} +func (m *PushNotificationQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PushNotificationQueryResponse.Marshal(b, m, deterministic) +} +func (m *PushNotificationQueryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PushNotificationQueryResponse.Merge(m, src) +} +func (m *PushNotificationQueryResponse) XXX_Size() int { + return xxx_messageInfo_PushNotificationQueryResponse.Size(m) +} +func (m *PushNotificationQueryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PushNotificationQueryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_PushNotificationQueryResponse proto.InternalMessageInfo + +func (m *PushNotificationQueryResponse) GetInfo() []*PushNotificationQueryInfo { + if m != nil { + return m.Info } return nil } -func (x *PushNotificationQueryResponse) GetMessageId() []byte { - if x != nil { - return x.MessageId +func (m *PushNotificationQueryResponse) GetMessageId() []byte { + if m != nil { + return m.MessageId } return nil } -func (x *PushNotificationQueryResponse) GetSuccess() bool { - if x != nil { - return x.Success +func (m *PushNotificationQueryResponse) GetSuccess() bool { + if m != nil { + return m.Success } return false } type PushNotification struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` - ChatId []byte `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` - PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - InstallationId string `protobuf:"bytes,4,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"` - Message []byte `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` - Type PushNotification_PushNotificationType `protobuf:"varint,6,opt,name=type,proto3,enum=protobuf.PushNotification_PushNotificationType" json:"type,omitempty"` - Author []byte `protobuf:"bytes,7,opt,name=author,proto3" json:"author,omitempty"` + AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` + ChatId []byte `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + InstallationId string `protobuf:"bytes,4,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"` + Message []byte `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` + Type PushNotification_PushNotificationType `protobuf:"varint,6,opt,name=type,proto3,enum=protobuf.PushNotification_PushNotificationType" json:"type,omitempty"` + Author []byte `protobuf:"bytes,7,opt,name=author,proto3" json:"author,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *PushNotification) Reset() { - *x = PushNotification{} - if protoimpl.UnsafeEnabled { - mi := &file_push_notifications_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PushNotification) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PushNotification) ProtoMessage() {} - -func (x *PushNotification) ProtoReflect() protoreflect.Message { - mi := &file_push_notifications_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PushNotification.ProtoReflect.Descriptor instead. +func (m *PushNotification) Reset() { *m = PushNotification{} } +func (m *PushNotification) String() string { return proto.CompactTextString(m) } +func (*PushNotification) ProtoMessage() {} func (*PushNotification) Descriptor() ([]byte, []int) { - return file_push_notifications_proto_rawDescGZIP(), []int{6} + return fileDescriptor_200acd86044eaa5d, []int{6} } -func (x *PushNotification) GetAccessToken() string { - if x != nil { - return x.AccessToken +func (m *PushNotification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PushNotification.Unmarshal(m, b) +} +func (m *PushNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PushNotification.Marshal(b, m, deterministic) +} +func (m *PushNotification) XXX_Merge(src proto.Message) { + xxx_messageInfo_PushNotification.Merge(m, src) +} +func (m *PushNotification) XXX_Size() int { + return xxx_messageInfo_PushNotification.Size(m) +} +func (m *PushNotification) XXX_DiscardUnknown() { + xxx_messageInfo_PushNotification.DiscardUnknown(m) +} + +var xxx_messageInfo_PushNotification proto.InternalMessageInfo + +func (m *PushNotification) GetAccessToken() string { + if m != nil { + return m.AccessToken } return "" } -func (x *PushNotification) GetChatId() []byte { - if x != nil { - return x.ChatId +func (m *PushNotification) GetChatId() []byte { + if m != nil { + return m.ChatId } return nil } -func (x *PushNotification) GetPublicKey() []byte { - if x != nil { - return x.PublicKey +func (m *PushNotification) GetPublicKey() []byte { + if m != nil { + return m.PublicKey } return nil } -func (x *PushNotification) GetInstallationId() string { - if x != nil { - return x.InstallationId +func (m *PushNotification) GetInstallationId() string { + if m != nil { + return m.InstallationId } return "" } -func (x *PushNotification) GetMessage() []byte { - if x != nil { - return x.Message +func (m *PushNotification) GetMessage() []byte { + if m != nil { + return m.Message } return nil } -func (x *PushNotification) GetType() PushNotification_PushNotificationType { - if x != nil { - return x.Type +func (m *PushNotification) GetType() PushNotification_PushNotificationType { + if m != nil { + return m.Type } return PushNotification_UNKNOWN_PUSH_NOTIFICATION_TYPE } -func (x *PushNotification) GetAuthor() []byte { - if x != nil { - return x.Author +func (m *PushNotification) GetAuthor() []byte { + if m != nil { + return m.Author } return nil } type PushNotificationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Requests []*PushNotification `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` - MessageId []byte `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` + Requests []*PushNotification `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` + MessageId []byte `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *PushNotificationRequest) Reset() { - *x = PushNotificationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_push_notifications_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PushNotificationRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PushNotificationRequest) ProtoMessage() {} - -func (x *PushNotificationRequest) ProtoReflect() protoreflect.Message { - mi := &file_push_notifications_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PushNotificationRequest.ProtoReflect.Descriptor instead. +func (m *PushNotificationRequest) Reset() { *m = PushNotificationRequest{} } +func (m *PushNotificationRequest) String() string { return proto.CompactTextString(m) } +func (*PushNotificationRequest) ProtoMessage() {} func (*PushNotificationRequest) Descriptor() ([]byte, []int) { - return file_push_notifications_proto_rawDescGZIP(), []int{7} + return fileDescriptor_200acd86044eaa5d, []int{7} } -func (x *PushNotificationRequest) GetRequests() []*PushNotification { - if x != nil { - return x.Requests +func (m *PushNotificationRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PushNotificationRequest.Unmarshal(m, b) +} +func (m *PushNotificationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PushNotificationRequest.Marshal(b, m, deterministic) +} +func (m *PushNotificationRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PushNotificationRequest.Merge(m, src) +} +func (m *PushNotificationRequest) XXX_Size() int { + return xxx_messageInfo_PushNotificationRequest.Size(m) +} +func (m *PushNotificationRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PushNotificationRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_PushNotificationRequest proto.InternalMessageInfo + +func (m *PushNotificationRequest) GetRequests() []*PushNotification { + if m != nil { + return m.Requests } return nil } -func (x *PushNotificationRequest) GetMessageId() []byte { - if x != nil { - return x.MessageId +func (m *PushNotificationRequest) GetMessageId() []byte { + if m != nil { + return m.MessageId } return nil } type PushNotificationReport struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` - Error PushNotificationReport_ErrorType `protobuf:"varint,2,opt,name=error,proto3,enum=protobuf.PushNotificationReport_ErrorType" json:"error,omitempty"` - PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - InstallationId string `protobuf:"bytes,4,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"` + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + Error PushNotificationReport_ErrorType `protobuf:"varint,2,opt,name=error,proto3,enum=protobuf.PushNotificationReport_ErrorType" json:"error,omitempty"` + PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + InstallationId string `protobuf:"bytes,4,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *PushNotificationReport) Reset() { - *x = PushNotificationReport{} - if protoimpl.UnsafeEnabled { - mi := &file_push_notifications_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PushNotificationReport) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PushNotificationReport) ProtoMessage() {} - -func (x *PushNotificationReport) ProtoReflect() protoreflect.Message { - mi := &file_push_notifications_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PushNotificationReport.ProtoReflect.Descriptor instead. +func (m *PushNotificationReport) Reset() { *m = PushNotificationReport{} } +func (m *PushNotificationReport) String() string { return proto.CompactTextString(m) } +func (*PushNotificationReport) ProtoMessage() {} func (*PushNotificationReport) Descriptor() ([]byte, []int) { - return file_push_notifications_proto_rawDescGZIP(), []int{8} + return fileDescriptor_200acd86044eaa5d, []int{8} } -func (x *PushNotificationReport) GetSuccess() bool { - if x != nil { - return x.Success +func (m *PushNotificationReport) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PushNotificationReport.Unmarshal(m, b) +} +func (m *PushNotificationReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PushNotificationReport.Marshal(b, m, deterministic) +} +func (m *PushNotificationReport) XXX_Merge(src proto.Message) { + xxx_messageInfo_PushNotificationReport.Merge(m, src) +} +func (m *PushNotificationReport) XXX_Size() int { + return xxx_messageInfo_PushNotificationReport.Size(m) +} +func (m *PushNotificationReport) XXX_DiscardUnknown() { + xxx_messageInfo_PushNotificationReport.DiscardUnknown(m) +} + +var xxx_messageInfo_PushNotificationReport proto.InternalMessageInfo + +func (m *PushNotificationReport) GetSuccess() bool { + if m != nil { + return m.Success } return false } -func (x *PushNotificationReport) GetError() PushNotificationReport_ErrorType { - if x != nil { - return x.Error +func (m *PushNotificationReport) GetError() PushNotificationReport_ErrorType { + if m != nil { + return m.Error } return PushNotificationReport_UNKNOWN_ERROR_TYPE } -func (x *PushNotificationReport) GetPublicKey() []byte { - if x != nil { - return x.PublicKey +func (m *PushNotificationReport) GetPublicKey() []byte { + if m != nil { + return m.PublicKey } return nil } -func (x *PushNotificationReport) GetInstallationId() string { - if x != nil { - return x.InstallationId +func (m *PushNotificationReport) GetInstallationId() string { + if m != nil { + return m.InstallationId } return "" } type PushNotificationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MessageId []byte `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` - Reports []*PushNotificationReport `protobuf:"bytes,2,rep,name=reports,proto3" json:"reports,omitempty"` + MessageId []byte `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` + Reports []*PushNotificationReport `protobuf:"bytes,2,rep,name=reports,proto3" json:"reports,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *PushNotificationResponse) Reset() { - *x = PushNotificationResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_push_notifications_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PushNotificationResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PushNotificationResponse) ProtoMessage() {} - -func (x *PushNotificationResponse) ProtoReflect() protoreflect.Message { - mi := &file_push_notifications_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PushNotificationResponse.ProtoReflect.Descriptor instead. +func (m *PushNotificationResponse) Reset() { *m = PushNotificationResponse{} } +func (m *PushNotificationResponse) String() string { return proto.CompactTextString(m) } +func (*PushNotificationResponse) ProtoMessage() {} func (*PushNotificationResponse) Descriptor() ([]byte, []int) { - return file_push_notifications_proto_rawDescGZIP(), []int{9} + return fileDescriptor_200acd86044eaa5d, []int{9} } -func (x *PushNotificationResponse) GetMessageId() []byte { - if x != nil { - return x.MessageId +func (m *PushNotificationResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PushNotificationResponse.Unmarshal(m, b) +} +func (m *PushNotificationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PushNotificationResponse.Marshal(b, m, deterministic) +} +func (m *PushNotificationResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PushNotificationResponse.Merge(m, src) +} +func (m *PushNotificationResponse) XXX_Size() int { + return xxx_messageInfo_PushNotificationResponse.Size(m) +} +func (m *PushNotificationResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PushNotificationResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_PushNotificationResponse proto.InternalMessageInfo + +func (m *PushNotificationResponse) GetMessageId() []byte { + if m != nil { + return m.MessageId } return nil } -func (x *PushNotificationResponse) GetReports() []*PushNotificationReport { - if x != nil { - return x.Reports +func (m *PushNotificationResponse) GetReports() []*PushNotificationReport { + if m != nil { + return m.Reports } return nil } -var File_push_notifications_proto protoreflect.FileDescriptor - -var file_push_notifications_proto_rawDesc = []byte{ - 0x0a, 0x18, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x13, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc8, 0x05, 0x0a, 0x1c, 0x50, 0x75, - 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x0a, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, - 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x27, - 0x0a, 0x0f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, - 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x28, - 0x0a, 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x6c, 0x69, - 0x73, 0x74, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, - 0x64, 0x4b, 0x65, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x08, 0x20, - 0x03, 0x28, 0x0c, 0x52, 0x0f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x43, 0x68, 0x61, 0x74, - 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x6e, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x18, 0x61, 0x6c, - 0x6c, 0x6f, 0x77, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, - 0x73, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x61, 0x6c, - 0x6c, 0x6f, 0x77, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x4f, - 0x6e, 0x6c, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x70, 0x6e, 0x5f, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x70, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, - 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6d, 0x65, 0x6e, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4d, - 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3b, 0x0a, 0x1a, 0x61, 0x6c, 0x6c, 0x6f, 0x77, - 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x63, 0x68, 0x61, 0x74, - 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x17, 0x61, 0x6c, 0x6c, - 0x6f, 0x77, 0x65, 0x64, 0x4d, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x68, 0x61, 0x74, - 0x4c, 0x69, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x75, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x68, - 0x61, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0d, 0x6d, - 0x75, 0x74, 0x65, 0x64, 0x43, 0x68, 0x61, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x46, 0x0a, 0x09, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x4e, 0x4b, - 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, - 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x50, 0x4e, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x01, - 0x12, 0x12, 0x0a, 0x0e, 0x46, 0x49, 0x52, 0x45, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x54, 0x4f, 0x4b, - 0x45, 0x4e, 0x10, 0x02, 0x22, 0xb2, 0x02, 0x0a, 0x24, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, - 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, - 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4e, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x38, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x80, 0x01, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, - 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, - 0x4d, 0x41, 0x4c, 0x46, 0x4f, 0x52, 0x4d, 0x45, 0x44, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, - 0x45, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, - 0x49, 0x53, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x55, 0x4e, 0x53, - 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, - 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x22, 0xb2, 0x01, 0x0a, 0x18, 0x43, 0x6f, - 0x6e, 0x74, 0x61, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x41, 0x64, 0x76, 0x65, 0x72, 0x74, 0x69, - 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x59, 0x0a, 0x16, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6e, - 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x14, 0x70, 0x75, 0x73, - 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x3b, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x43, 0x68, 0x61, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x52, 0x0c, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x38, - 0x0a, 0x15, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x8c, 0x02, 0x0a, 0x19, 0x50, 0x75, 0x73, - 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x73, - 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, - 0x79, 0x12, 0x28, 0x0a, 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, - 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0e, 0x61, 0x6c, 0x6c, - 0x6f, 0x77, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x67, - 0x72, 0x61, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, - 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x11, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x50, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x91, 0x01, 0x0a, 0x1d, 0x50, 0x75, 0x73, 0x68, - 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x04, 0x69, 0x6e, 0x66, - 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, - 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, - 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x82, 0x03, 0x0a, 0x10, - 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, - 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x43, - 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x22, 0x73, 0x0a, 0x14, 0x50, - 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x1e, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x50, - 0x55, 0x53, 0x48, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x45, 0x53, 0x53, 0x41, - 0x47, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x45, 0x4e, 0x54, 0x49, 0x4f, 0x4e, 0x10, - 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x54, 0x4f, 0x5f, - 0x4a, 0x4f, 0x49, 0x4e, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x10, 0x03, - 0x22, 0x70, 0x0a, 0x17, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x08, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x49, 0x64, 0x22, 0x9a, 0x02, 0x0a, 0x16, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x18, 0x0a, - 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, - 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x40, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, - 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, - 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x73, 0x74, - 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x64, 0x22, 0x5c, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, - 0x0a, 0x12, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x57, 0x52, 0x4f, 0x4e, 0x47, 0x5f, - 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x4e, 0x54, 0x45, 0x52, - 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x4e, - 0x4f, 0x54, 0x5f, 0x52, 0x45, 0x47, 0x49, 0x53, 0x54, 0x45, 0x52, 0x45, 0x44, 0x10, 0x03, 0x22, - 0x75, 0x0a, 0x18, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x3a, 0x0a, 0x07, 0x72, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x07, 0x72, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterEnum("protobuf.PushNotificationRegistration_TokenType", PushNotificationRegistration_TokenType_name, PushNotificationRegistration_TokenType_value) + proto.RegisterEnum("protobuf.PushNotificationRegistrationResponse_ErrorType", PushNotificationRegistrationResponse_ErrorType_name, PushNotificationRegistrationResponse_ErrorType_value) + proto.RegisterEnum("protobuf.PushNotification_PushNotificationType", PushNotification_PushNotificationType_name, PushNotification_PushNotificationType_value) + proto.RegisterEnum("protobuf.PushNotificationReport_ErrorType", PushNotificationReport_ErrorType_name, PushNotificationReport_ErrorType_value) + proto.RegisterType((*PushNotificationRegistration)(nil), "protobuf.PushNotificationRegistration") + proto.RegisterType((*PushNotificationRegistrationResponse)(nil), "protobuf.PushNotificationRegistrationResponse") + proto.RegisterType((*ContactCodeAdvertisement)(nil), "protobuf.ContactCodeAdvertisement") + proto.RegisterType((*PushNotificationQuery)(nil), "protobuf.PushNotificationQuery") + proto.RegisterType((*PushNotificationQueryInfo)(nil), "protobuf.PushNotificationQueryInfo") + proto.RegisterType((*PushNotificationQueryResponse)(nil), "protobuf.PushNotificationQueryResponse") + proto.RegisterType((*PushNotification)(nil), "protobuf.PushNotification") + proto.RegisterType((*PushNotificationRequest)(nil), "protobuf.PushNotificationRequest") + proto.RegisterType((*PushNotificationReport)(nil), "protobuf.PushNotificationReport") + proto.RegisterType((*PushNotificationResponse)(nil), "protobuf.PushNotificationResponse") } -var ( - file_push_notifications_proto_rawDescOnce sync.Once - file_push_notifications_proto_rawDescData = file_push_notifications_proto_rawDesc -) - -func file_push_notifications_proto_rawDescGZIP() []byte { - file_push_notifications_proto_rawDescOnce.Do(func() { - file_push_notifications_proto_rawDescData = protoimpl.X.CompressGZIP(file_push_notifications_proto_rawDescData) - }) - return file_push_notifications_proto_rawDescData +func init() { + proto.RegisterFile("push_notifications.proto", fileDescriptor_200acd86044eaa5d) } -var file_push_notifications_proto_enumTypes = make([]protoimpl.EnumInfo, 4) -var file_push_notifications_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_push_notifications_proto_goTypes = []interface{}{ - (PushNotificationRegistration_TokenType)(0), // 0: protobuf.PushNotificationRegistration.TokenType - (PushNotificationRegistrationResponse_ErrorType)(0), // 1: protobuf.PushNotificationRegistrationResponse.ErrorType - (PushNotification_PushNotificationType)(0), // 2: protobuf.PushNotification.PushNotificationType - (PushNotificationReport_ErrorType)(0), // 3: protobuf.PushNotificationReport.ErrorType - (*PushNotificationRegistration)(nil), // 4: protobuf.PushNotificationRegistration - (*PushNotificationRegistrationResponse)(nil), // 5: protobuf.PushNotificationRegistrationResponse - (*ContactCodeAdvertisement)(nil), // 6: protobuf.ContactCodeAdvertisement - (*PushNotificationQuery)(nil), // 7: protobuf.PushNotificationQuery - (*PushNotificationQueryInfo)(nil), // 8: protobuf.PushNotificationQueryInfo - (*PushNotificationQueryResponse)(nil), // 9: protobuf.PushNotificationQueryResponse - (*PushNotification)(nil), // 10: protobuf.PushNotification - (*PushNotificationRequest)(nil), // 11: protobuf.PushNotificationRequest - (*PushNotificationReport)(nil), // 12: protobuf.PushNotificationReport - (*PushNotificationResponse)(nil), // 13: protobuf.PushNotificationResponse - (*ChatIdentity)(nil), // 14: protobuf.ChatIdentity -} -var file_push_notifications_proto_depIdxs = []int32{ - 0, // 0: protobuf.PushNotificationRegistration.token_type:type_name -> protobuf.PushNotificationRegistration.TokenType - 1, // 1: protobuf.PushNotificationRegistrationResponse.error:type_name -> protobuf.PushNotificationRegistrationResponse.ErrorType - 8, // 2: protobuf.ContactCodeAdvertisement.push_notification_info:type_name -> protobuf.PushNotificationQueryInfo - 14, // 3: protobuf.ContactCodeAdvertisement.chat_identity:type_name -> protobuf.ChatIdentity - 8, // 4: protobuf.PushNotificationQueryResponse.info:type_name -> protobuf.PushNotificationQueryInfo - 2, // 5: protobuf.PushNotification.type:type_name -> protobuf.PushNotification.PushNotificationType - 10, // 6: protobuf.PushNotificationRequest.requests:type_name -> protobuf.PushNotification - 3, // 7: protobuf.PushNotificationReport.error:type_name -> protobuf.PushNotificationReport.ErrorType - 12, // 8: protobuf.PushNotificationResponse.reports:type_name -> protobuf.PushNotificationReport - 9, // [9:9] is the sub-list for method output_type - 9, // [9:9] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name -} - -func init() { file_push_notifications_proto_init() } -func file_push_notifications_proto_init() { - if File_push_notifications_proto != nil { - return - } - file_chat_identity_proto_init() - if !protoimpl.UnsafeEnabled { - file_push_notifications_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PushNotificationRegistration); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_push_notifications_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PushNotificationRegistrationResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_push_notifications_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContactCodeAdvertisement); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_push_notifications_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PushNotificationQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_push_notifications_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PushNotificationQueryInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_push_notifications_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PushNotificationQueryResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_push_notifications_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PushNotification); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_push_notifications_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PushNotificationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_push_notifications_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PushNotificationReport); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_push_notifications_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PushNotificationResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_push_notifications_proto_rawDesc, - NumEnums: 4, - NumMessages: 10, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_push_notifications_proto_goTypes, - DependencyIndexes: file_push_notifications_proto_depIdxs, - EnumInfos: file_push_notifications_proto_enumTypes, - MessageInfos: file_push_notifications_proto_msgTypes, - }.Build() - File_push_notifications_proto = out.File - file_push_notifications_proto_rawDesc = nil - file_push_notifications_proto_goTypes = nil - file_push_notifications_proto_depIdxs = nil +var fileDescriptor_200acd86044eaa5d = []byte{ + // 1088 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x5b, 0x4f, 0xe3, 0x46, + 0x14, 0xae, 0x93, 0x40, 0x92, 0x93, 0x2b, 0x53, 0x08, 0x5e, 0x5a, 0xb6, 0xa9, 0x7b, 0x8b, 0x78, + 0xc8, 0x56, 0x54, 0xea, 0xae, 0xca, 0x4b, 0xb3, 0xc1, 0xb0, 0x2e, 0xc4, 0xce, 0x4e, 0x9c, 0xae, + 0xa8, 0x2a, 0x8d, 0x4c, 0x32, 0x80, 0x45, 0xb0, 0x5d, 0xcf, 0x84, 0x2a, 0x6f, 0x55, 0x9f, 0xfb, + 0xd2, 0xd7, 0xfe, 0x8c, 0xfd, 0x15, 0xfd, 0x59, 0x95, 0xc7, 0xe3, 0x60, 0x48, 0xb8, 0x54, 0xda, + 0xa7, 0xf8, 0x7c, 0xe7, 0x32, 0x73, 0xce, 0xf9, 0xe6, 0x0b, 0xa8, 0xc1, 0x94, 0x5d, 0x10, 0xcf, + 0xe7, 0xee, 0x99, 0x3b, 0x72, 0xb8, 0xeb, 0x7b, 0xac, 0x1d, 0x84, 0x3e, 0xf7, 0x51, 0x41, 0xfc, + 0x9c, 0x4e, 0xcf, 0xb6, 0x3e, 0x1e, 0x5d, 0x38, 0x9c, 0xb8, 0x63, 0xea, 0x71, 0x97, 0xcf, 0x62, + 0xb7, 0xf6, 0xef, 0x0a, 0x7c, 0xda, 0x9f, 0xb2, 0x0b, 0x33, 0x95, 0x8a, 0xe9, 0xb9, 0xcb, 0x78, + 0x28, 0xbe, 0x91, 0x05, 0xc0, 0xfd, 0x4b, 0xea, 0x11, 0x3e, 0x0b, 0xa8, 0xaa, 0x34, 0x95, 0x56, + 0x75, 0xf7, 0xdb, 0x76, 0x52, 0xb4, 0xfd, 0x50, 0x6e, 0xdb, 0x8e, 0x12, 0xed, 0x59, 0x40, 0x71, + 0x91, 0x27, 0x9f, 0xe8, 0x73, 0x28, 0x8f, 0xe9, 0xb5, 0x3b, 0xa2, 0x44, 0x60, 0x6a, 0xa6, 0xa9, + 0xb4, 0x8a, 0xb8, 0x14, 0x63, 0x22, 0x03, 0x7d, 0x03, 0x35, 0xd7, 0x63, 0xdc, 0x99, 0x4c, 0x44, + 0x1d, 0xe2, 0x8e, 0xd5, 0xac, 0x88, 0xaa, 0xa6, 0x61, 0x63, 0x1c, 0xd5, 0x72, 0x46, 0x23, 0xca, + 0x98, 0xac, 0x95, 0x8b, 0x6b, 0xc5, 0x58, 0x5c, 0x4b, 0x85, 0x3c, 0xf5, 0x9c, 0xd3, 0x09, 0x1d, + 0xab, 0x2b, 0x4d, 0xa5, 0x55, 0xc0, 0x89, 0x19, 0x79, 0xae, 0x69, 0xc8, 0x5c, 0xdf, 0x53, 0x57, + 0x9b, 0x4a, 0x2b, 0x87, 0x13, 0x13, 0xb5, 0xa0, 0xee, 0x4c, 0x26, 0xfe, 0xef, 0x74, 0x4c, 0x2e, + 0xe9, 0x8c, 0x4c, 0x5c, 0xc6, 0xd5, 0x7c, 0x33, 0xdb, 0x2a, 0xe3, 0xaa, 0xc4, 0x8f, 0xe8, 0xec, + 0xd8, 0x65, 0x1c, 0xed, 0xc0, 0xda, 0xe9, 0xc4, 0x1f, 0x5d, 0xd2, 0x31, 0x11, 0xd3, 0x15, 0xa1, + 0x05, 0x11, 0x5a, 0x93, 0x8e, 0xee, 0x85, 0xc3, 0x45, 0xec, 0x73, 0x80, 0xa9, 0x17, 0x8a, 0xf9, + 0xd0, 0x50, 0x2d, 0x8a, 0xcb, 0xa4, 0x10, 0xb4, 0x0e, 0x2b, 0xe7, 0xa1, 0xe3, 0x71, 0x15, 0x9a, + 0x4a, 0xab, 0x8c, 0x63, 0x03, 0xbd, 0x04, 0x55, 0x9c, 0x49, 0xce, 0x42, 0xff, 0x8a, 0x8c, 0x7c, + 0x8f, 0x3b, 0x23, 0xce, 0x88, 0xef, 0x4d, 0x66, 0x6a, 0x49, 0xd4, 0xd8, 0x10, 0xfe, 0x83, 0xd0, + 0xbf, 0xea, 0x4a, 0xaf, 0xe5, 0x4d, 0x66, 0xe8, 0x13, 0x28, 0x3a, 0x81, 0x47, 0xb8, 0x1f, 0xb8, + 0x23, 0xb5, 0x2c, 0x06, 0x53, 0x70, 0x02, 0xcf, 0x8e, 0x6c, 0xf4, 0x15, 0x54, 0xc5, 0xf5, 0xc8, + 0x55, 0xc4, 0x06, 0xdf, 0x63, 0x6a, 0x45, 0xd4, 0xaa, 0x08, 0xb4, 0x27, 0x41, 0xb4, 0x07, 0x5b, + 0xc9, 0x20, 0x92, 0xc0, 0x54, 0x9f, 0x55, 0xd1, 0xe7, 0xa6, 0x8c, 0x48, 0x92, 0xe6, 0xfd, 0x7e, + 0x0d, 0xb5, 0xab, 0x29, 0xbf, 0x35, 0x99, 0x9a, 0xc8, 0xa8, 0x08, 0x38, 0x89, 0xd3, 0x0e, 0xa0, + 0x38, 0x27, 0x0a, 0x6a, 0x00, 0x1a, 0x9a, 0x47, 0xa6, 0xf5, 0xce, 0x24, 0xb6, 0x75, 0xa4, 0x9b, + 0xc4, 0x3e, 0xe9, 0xeb, 0xf5, 0x8f, 0x50, 0x05, 0x8a, 0x9d, 0xbe, 0xc4, 0xea, 0x0a, 0x42, 0x50, + 0x3d, 0x30, 0xb0, 0xfe, 0xba, 0x33, 0xd0, 0x25, 0x96, 0xd1, 0xde, 0x67, 0xe0, 0xcb, 0x87, 0xe8, + 0x88, 0x29, 0x0b, 0x7c, 0x8f, 0xd1, 0x68, 0xf1, 0x6c, 0x2a, 0x28, 0x22, 0xf8, 0x5c, 0xc0, 0x89, + 0x89, 0x4c, 0x58, 0xa1, 0x61, 0xe8, 0x87, 0x82, 0x94, 0xd5, 0xdd, 0x57, 0x4f, 0xe3, 0x79, 0x52, + 0xb8, 0xad, 0x47, 0xb9, 0x82, 0xef, 0x71, 0x19, 0xb4, 0x0d, 0x10, 0xd2, 0xdf, 0xa6, 0x94, 0xf1, + 0x84, 0xc3, 0x65, 0x5c, 0x94, 0x88, 0x31, 0xd6, 0xfe, 0x50, 0xa0, 0x38, 0xcf, 0x49, 0xb7, 0xae, + 0x63, 0x6c, 0xe1, 0xa4, 0xf5, 0x0d, 0x58, 0xeb, 0x75, 0x8e, 0x0f, 0x2c, 0xdc, 0xd3, 0xf7, 0x49, + 0x4f, 0x1f, 0x0c, 0x3a, 0x87, 0x7a, 0x5d, 0x41, 0xeb, 0x50, 0xff, 0x59, 0xc7, 0x03, 0xc3, 0x32, + 0x49, 0xcf, 0x18, 0xf4, 0x3a, 0x76, 0xf7, 0x4d, 0x3d, 0x83, 0xb6, 0xa0, 0x31, 0x34, 0x07, 0xc3, + 0x7e, 0xdf, 0xc2, 0xb6, 0xbe, 0x9f, 0x9e, 0x61, 0x36, 0x1a, 0x9a, 0x61, 0xda, 0x3a, 0x36, 0x3b, + 0xc7, 0xf1, 0x09, 0xf5, 0x9c, 0xf6, 0x5e, 0x01, 0x55, 0xd2, 0xa6, 0xeb, 0x8f, 0x69, 0x67, 0x7c, + 0x4d, 0x43, 0xee, 0x32, 0x1a, 0xad, 0x1b, 0x9d, 0x40, 0x63, 0x41, 0x57, 0x88, 0xeb, 0x9d, 0xf9, + 0xaa, 0xd2, 0xcc, 0xb6, 0x4a, 0xbb, 0x5f, 0xdc, 0x3f, 0x9f, 0xb7, 0x53, 0x1a, 0xce, 0x0c, 0xef, + 0xcc, 0xc7, 0xeb, 0xc1, 0x1d, 0x57, 0x84, 0xa2, 0x3d, 0xa8, 0xdc, 0x92, 0x23, 0x31, 0xf1, 0xd2, + 0x6e, 0xe3, 0xa6, 0x62, 0xc4, 0x0f, 0x43, 0x7a, 0x71, 0x79, 0x94, 0xb2, 0xb4, 0x57, 0xb0, 0xb1, + 0xf4, 0x3c, 0xf4, 0x19, 0x94, 0x82, 0xe9, 0xe9, 0xc4, 0x1d, 0x45, 0xef, 0x96, 0x89, 0x5b, 0x96, + 0x31, 0xc4, 0xd0, 0x11, 0x9d, 0x31, 0xed, 0xaf, 0x0c, 0x3c, 0xbb, 0xf7, 0xaa, 0x0b, 0x72, 0xa2, + 0x2c, 0xca, 0xc9, 0x12, 0x69, 0xca, 0x2c, 0x95, 0xa6, 0x6d, 0x80, 0x9b, 0xab, 0x24, 0xab, 0x9f, + 0xdf, 0x64, 0xa9, 0xc4, 0xe4, 0x96, 0x4a, 0xcc, 0x5c, 0x16, 0x56, 0xd2, 0xb2, 0x70, 0xbf, 0x78, + 0xed, 0xc0, 0x1a, 0xa3, 0xe1, 0x35, 0x0d, 0x49, 0xea, 0xfc, 0xbc, 0xc8, 0xad, 0xc5, 0x8e, 0x7e, + 0x72, 0x0b, 0xed, 0x6f, 0x05, 0xb6, 0x97, 0x8e, 0x63, 0xfe, 0x56, 0x5e, 0x42, 0xee, 0xff, 0x2e, + 0x5c, 0x24, 0x44, 0xfd, 0x5f, 0x51, 0xc6, 0x9c, 0x73, 0x9a, 0xcc, 0xa8, 0x8c, 0x8b, 0x12, 0x31, + 0xc6, 0xe9, 0x37, 0x98, 0xbd, 0xf5, 0x06, 0xb5, 0x3f, 0xb3, 0x50, 0xbf, 0x5b, 0xfc, 0x29, 0x9b, + 0xd9, 0x84, 0xbc, 0x64, 0x94, 0x3c, 0x6d, 0x35, 0xe6, 0xcc, 0x63, 0x9b, 0x58, 0xb2, 0xd1, 0xdc, + 0xd2, 0x8d, 0xaa, 0x90, 0x97, 0xf7, 0x97, 0xab, 0x48, 0x4c, 0xd4, 0x85, 0x9c, 0xf8, 0x77, 0x5c, + 0x15, 0xaa, 0xf1, 0xe2, 0xfe, 0x21, 0x2d, 0x00, 0x42, 0x2c, 0x44, 0x32, 0x6a, 0xc0, 0xaa, 0x33, + 0xe5, 0x17, 0x7e, 0x28, 0x97, 0x25, 0x2d, 0x8d, 0xc1, 0xfa, 0xb2, 0x2c, 0xa4, 0xc1, 0xf3, 0x44, + 0x2e, 0xfa, 0xc3, 0xc1, 0x1b, 0x62, 0x5a, 0xb6, 0x71, 0x60, 0x74, 0x3b, 0x76, 0xa4, 0x08, 0x52, + 0x3a, 0x4a, 0x90, 0xbf, 0x11, 0x0c, 0x61, 0x98, 0x91, 0xbb, 0x9e, 0x41, 0xdb, 0xf0, 0x0c, 0xeb, + 0x6f, 0x87, 0xfa, 0xc0, 0x26, 0xb6, 0x45, 0x7e, 0xb2, 0x0c, 0x93, 0x74, 0xad, 0x5e, 0x6f, 0x68, + 0x1a, 0xf6, 0x49, 0x3d, 0xab, 0x05, 0xb0, 0xb9, 0xa8, 0x78, 0x42, 0xb6, 0xd0, 0xf7, 0x50, 0x90, + 0x0a, 0xc6, 0x24, 0x2b, 0xb6, 0x1e, 0x90, 0xc9, 0x79, 0xec, 0x23, 0x84, 0xd0, 0xfe, 0xc9, 0x40, + 0x63, 0xf1, 0xc8, 0xc0, 0x0f, 0xf9, 0x03, 0x7a, 0xfd, 0xe3, 0x6d, 0xbd, 0xde, 0x79, 0x48, 0xaf, + 0xa3, 0x52, 0x4b, 0x15, 0xfa, 0x43, 0x90, 0x43, 0xfb, 0xf5, 0x29, 0x4a, 0x5e, 0x83, 0xd2, 0x3b, + 0x6c, 0x99, 0x87, 0xe9, 0xbf, 0xb1, 0x3b, 0x8a, 0x9c, 0x89, 0x30, 0xd3, 0xb2, 0x09, 0xd6, 0x0f, + 0x8d, 0x81, 0xad, 0x63, 0x7d, 0xbf, 0x9e, 0xd5, 0xa6, 0xa0, 0x2e, 0x36, 0x24, 0x5f, 0xe8, 0xed, + 0xb9, 0x2a, 0x77, 0x1f, 0xda, 0x0f, 0x90, 0x0f, 0x45, 0xef, 0x4c, 0xcd, 0x88, 0x6d, 0x35, 0x1f, + 0x1b, 0x12, 0x4e, 0x12, 0x5e, 0x57, 0x7e, 0x29, 0xb5, 0x5f, 0xec, 0x25, 0xe1, 0xa7, 0xab, 0xe2, + 0xeb, 0xbb, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x80, 0x64, 0xa2, 0x39, 0x6d, 0x0a, 0x00, 0x00, } diff --git a/protocol/protobuf/segment_message.pb.go b/protocol/protobuf/segment_message.pb.go index 04e2c8271..ed2ee7da8 100644 --- a/protocol/protobuf/segment_message.pb.go +++ b/protocol/protobuf/segment_message.pb.go @@ -1,30 +1,26 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: segment_message.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type SegmentMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // hash of the entire original message EntireMessageHash []byte `protobuf:"bytes,1,opt,name=entire_message_hash,json=entireMessageHash,proto3" json:"entire_message_hash,omitempty"` // Index of this segment within the entire original message @@ -32,147 +28,84 @@ type SegmentMessage struct { // Total number of segments the entire original message is divided into SegmentsCount uint32 `protobuf:"varint,3,opt,name=segments_count,json=segmentsCount,proto3" json:"segments_count,omitempty"` // The payload data for this particular segment - Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` + Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SegmentMessage) Reset() { - *x = SegmentMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_segment_message_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SegmentMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SegmentMessage) ProtoMessage() {} - -func (x *SegmentMessage) ProtoReflect() protoreflect.Message { - mi := &file_segment_message_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SegmentMessage.ProtoReflect.Descriptor instead. +func (m *SegmentMessage) Reset() { *m = SegmentMessage{} } +func (m *SegmentMessage) String() string { return proto.CompactTextString(m) } +func (*SegmentMessage) ProtoMessage() {} func (*SegmentMessage) Descriptor() ([]byte, []int) { - return file_segment_message_proto_rawDescGZIP(), []int{0} + return fileDescriptor_857302809a887a8b, []int{0} } -func (x *SegmentMessage) GetEntireMessageHash() []byte { - if x != nil { - return x.EntireMessageHash +func (m *SegmentMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SegmentMessage.Unmarshal(m, b) +} +func (m *SegmentMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SegmentMessage.Marshal(b, m, deterministic) +} +func (m *SegmentMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentMessage.Merge(m, src) +} +func (m *SegmentMessage) XXX_Size() int { + return xxx_messageInfo_SegmentMessage.Size(m) +} +func (m *SegmentMessage) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_SegmentMessage proto.InternalMessageInfo + +func (m *SegmentMessage) GetEntireMessageHash() []byte { + if m != nil { + return m.EntireMessageHash } return nil } -func (x *SegmentMessage) GetIndex() uint32 { - if x != nil { - return x.Index +func (m *SegmentMessage) GetIndex() uint32 { + if m != nil { + return m.Index } return 0 } -func (x *SegmentMessage) GetSegmentsCount() uint32 { - if x != nil { - return x.SegmentsCount +func (m *SegmentMessage) GetSegmentsCount() uint32 { + if m != nil { + return m.SegmentsCount } return 0 } -func (x *SegmentMessage) GetPayload() []byte { - if x != nil { - return x.Payload +func (m *SegmentMessage) GetPayload() []byte { + if m != nil { + return m.Payload } return nil } -var File_segment_message_proto protoreflect.FileDescriptor - -var file_segment_message_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x22, 0x97, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x65, 0x6e, 0x74, 0x69, 0x72, 0x65, 0x5f, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x11, 0x65, 0x6e, 0x74, 0x69, 0x72, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x48, 0x61, 0x73, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, - 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x0d, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x43, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, - 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, +func init() { + proto.RegisterType((*SegmentMessage)(nil), "protobuf.SegmentMessage") } -var ( - file_segment_message_proto_rawDescOnce sync.Once - file_segment_message_proto_rawDescData = file_segment_message_proto_rawDesc -) - -func file_segment_message_proto_rawDescGZIP() []byte { - file_segment_message_proto_rawDescOnce.Do(func() { - file_segment_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_segment_message_proto_rawDescData) - }) - return file_segment_message_proto_rawDescData +func init() { + proto.RegisterFile("segment_message.proto", fileDescriptor_857302809a887a8b) } -var file_segment_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_segment_message_proto_goTypes = []interface{}{ - (*SegmentMessage)(nil), // 0: protobuf.SegmentMessage -} -var file_segment_message_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_segment_message_proto_init() } -func file_segment_message_proto_init() { - if File_segment_message_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_segment_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SegmentMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_segment_message_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_segment_message_proto_goTypes, - DependencyIndexes: file_segment_message_proto_depIdxs, - MessageInfos: file_segment_message_proto_msgTypes, - }.Build() - File_segment_message_proto = out.File - file_segment_message_proto_rawDesc = nil - file_segment_message_proto_goTypes = nil - file_segment_message_proto_depIdxs = nil +var fileDescriptor_857302809a887a8b = []byte{ + // 169 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2d, 0x4e, 0x4d, 0xcf, + 0x4d, 0xcd, 0x2b, 0x89, 0xcf, 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0xd5, 0x2b, 0x28, 0xca, 0x2f, + 0xc9, 0x17, 0xe2, 0x00, 0x53, 0x49, 0xa5, 0x69, 0x4a, 0xd3, 0x19, 0xb9, 0xf8, 0x82, 0x21, 0x6a, + 0x7c, 0x21, 0x4a, 0x84, 0xf4, 0xb8, 0x84, 0x53, 0xf3, 0x4a, 0x32, 0x8b, 0x52, 0x61, 0x9a, 0xe2, + 0x33, 0x12, 0x8b, 0x33, 0x24, 0x18, 0x15, 0x18, 0x35, 0x78, 0x82, 0x04, 0x21, 0x52, 0x50, 0xb5, + 0x1e, 0x89, 0xc5, 0x19, 0x42, 0x22, 0x5c, 0xac, 0x99, 0x79, 0x29, 0xa9, 0x15, 0x12, 0x4c, 0x0a, + 0x8c, 0x1a, 0xbc, 0x41, 0x10, 0x8e, 0x90, 0x2a, 0x17, 0x1f, 0xd4, 0xee, 0xe2, 0xf8, 0xe4, 0xfc, + 0xd2, 0xbc, 0x12, 0x09, 0x66, 0xb0, 0x34, 0x2f, 0x4c, 0xd4, 0x19, 0x24, 0x28, 0x24, 0xc1, 0xc5, + 0x5e, 0x90, 0x58, 0x99, 0x93, 0x9f, 0x98, 0x22, 0xc1, 0x02, 0xb6, 0x00, 0xc6, 0x75, 0xe2, 0x8d, + 0xe2, 0xd6, 0xd3, 0xb7, 0x86, 0x39, 0x34, 0x89, 0x0d, 0xcc, 0x32, 0x06, 0x04, 0x00, 0x00, 0xff, + 0xff, 0x12, 0x40, 0x55, 0x2e, 0xd2, 0x00, 0x00, 0x00, } diff --git a/protocol/protobuf/shard.pb.go b/protocol/protobuf/shard.pb.go index f7965d030..5b25fe7ae 100644 --- a/protocol/protobuf/shard.pb.go +++ b/protocol/protobuf/shard.pb.go @@ -1,85 +1,73 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: shard.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Shard struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Cluster int32 `protobuf:"varint,1,opt,name=cluster,proto3" json:"cluster,omitempty"` - Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` + Cluster int32 `protobuf:"varint,1,opt,name=cluster,proto3" json:"cluster,omitempty"` + Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Shard) Reset() { - *x = Shard{} - if protoimpl.UnsafeEnabled { - mi := &file_shard_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Shard) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Shard) ProtoMessage() {} - -func (x *Shard) ProtoReflect() protoreflect.Message { - mi := &file_shard_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Shard.ProtoReflect.Descriptor instead. +func (m *Shard) Reset() { *m = Shard{} } +func (m *Shard) String() string { return proto.CompactTextString(m) } +func (*Shard) ProtoMessage() {} func (*Shard) Descriptor() ([]byte, []int) { - return file_shard_proto_rawDescGZIP(), []int{0} + return fileDescriptor_319ea41e44cdc364, []int{0} } -func (x *Shard) GetCluster() int32 { - if x != nil { - return x.Cluster +func (m *Shard) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Shard.Unmarshal(m, b) +} +func (m *Shard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Shard.Marshal(b, m, deterministic) +} +func (m *Shard) XXX_Merge(src proto.Message) { + xxx_messageInfo_Shard.Merge(m, src) +} +func (m *Shard) XXX_Size() int { + return xxx_messageInfo_Shard.Size(m) +} +func (m *Shard) XXX_DiscardUnknown() { + xxx_messageInfo_Shard.DiscardUnknown(m) +} + +var xxx_messageInfo_Shard proto.InternalMessageInfo + +func (m *Shard) GetCluster() int32 { + if m != nil { + return m.Cluster } return 0 } -func (x *Shard) GetIndex() int32 { - if x != nil { - return x.Index +func (m *Shard) GetIndex() int32 { + if m != nil { + return m.Index } return 0 } type PublicShardInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // clock Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` // community ID @@ -87,238 +75,139 @@ type PublicShardInfo struct { // shard information Shard *Shard `protobuf:"bytes,3,opt,name=shard,proto3" json:"shard,omitempty"` // if chainID > 0, the signer must be verified through the community contract - ChainId uint64 `protobuf:"varint,4,opt,name=chainId,proto3" json:"chainId,omitempty"` + ChainId uint64 `protobuf:"varint,4,opt,name=chainId,proto3" json:"chainId,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *PublicShardInfo) Reset() { - *x = PublicShardInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_shard_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PublicShardInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PublicShardInfo) ProtoMessage() {} - -func (x *PublicShardInfo) ProtoReflect() protoreflect.Message { - mi := &file_shard_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PublicShardInfo.ProtoReflect.Descriptor instead. +func (m *PublicShardInfo) Reset() { *m = PublicShardInfo{} } +func (m *PublicShardInfo) String() string { return proto.CompactTextString(m) } +func (*PublicShardInfo) ProtoMessage() {} func (*PublicShardInfo) Descriptor() ([]byte, []int) { - return file_shard_proto_rawDescGZIP(), []int{1} + return fileDescriptor_319ea41e44cdc364, []int{1} } -func (x *PublicShardInfo) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *PublicShardInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PublicShardInfo.Unmarshal(m, b) +} +func (m *PublicShardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PublicShardInfo.Marshal(b, m, deterministic) +} +func (m *PublicShardInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_PublicShardInfo.Merge(m, src) +} +func (m *PublicShardInfo) XXX_Size() int { + return xxx_messageInfo_PublicShardInfo.Size(m) +} +func (m *PublicShardInfo) XXX_DiscardUnknown() { + xxx_messageInfo_PublicShardInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_PublicShardInfo proto.InternalMessageInfo + +func (m *PublicShardInfo) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *PublicShardInfo) GetCommunityId() []byte { - if x != nil { - return x.CommunityId +func (m *PublicShardInfo) GetCommunityId() []byte { + if m != nil { + return m.CommunityId } return nil } -func (x *PublicShardInfo) GetShard() *Shard { - if x != nil { - return x.Shard +func (m *PublicShardInfo) GetShard() *Shard { + if m != nil { + return m.Shard } return nil } -func (x *PublicShardInfo) GetChainId() uint64 { - if x != nil { - return x.ChainId +func (m *PublicShardInfo) GetChainId() uint64 { + if m != nil { + return m.ChainId } return 0 } type CommunityPublicShardInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Signature of the payload field Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` // Marshaled PublicShardInfo - Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` + Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommunityPublicShardInfo) Reset() { - *x = CommunityPublicShardInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_shard_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommunityPublicShardInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommunityPublicShardInfo) ProtoMessage() {} - -func (x *CommunityPublicShardInfo) ProtoReflect() protoreflect.Message { - mi := &file_shard_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommunityPublicShardInfo.ProtoReflect.Descriptor instead. +func (m *CommunityPublicShardInfo) Reset() { *m = CommunityPublicShardInfo{} } +func (m *CommunityPublicShardInfo) String() string { return proto.CompactTextString(m) } +func (*CommunityPublicShardInfo) ProtoMessage() {} func (*CommunityPublicShardInfo) Descriptor() ([]byte, []int) { - return file_shard_proto_rawDescGZIP(), []int{2} + return fileDescriptor_319ea41e44cdc364, []int{2} } -func (x *CommunityPublicShardInfo) GetSignature() []byte { - if x != nil { - return x.Signature +func (m *CommunityPublicShardInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommunityPublicShardInfo.Unmarshal(m, b) +} +func (m *CommunityPublicShardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommunityPublicShardInfo.Marshal(b, m, deterministic) +} +func (m *CommunityPublicShardInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommunityPublicShardInfo.Merge(m, src) +} +func (m *CommunityPublicShardInfo) XXX_Size() int { + return xxx_messageInfo_CommunityPublicShardInfo.Size(m) +} +func (m *CommunityPublicShardInfo) XXX_DiscardUnknown() { + xxx_messageInfo_CommunityPublicShardInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_CommunityPublicShardInfo proto.InternalMessageInfo + +func (m *CommunityPublicShardInfo) GetSignature() []byte { + if m != nil { + return m.Signature } return nil } -func (x *CommunityPublicShardInfo) GetPayload() []byte { - if x != nil { - return x.Payload +func (m *CommunityPublicShardInfo) GetPayload() []byte { + if m != nil { + return m.Payload } return nil } -var File_shard_proto protoreflect.FileDescriptor - -var file_shard_proto_rawDesc = []byte{ - 0x0a, 0x0b, 0x73, 0x68, 0x61, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x37, 0x0a, 0x05, 0x53, 0x68, 0x61, 0x72, 0x64, - 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, - 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x22, 0x8b, 0x01, 0x0a, 0x0f, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x64, - 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, - 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x25, 0x0a, - 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x05, 0x73, - 0x68, 0x61, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x52, - 0x0a, 0x18, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x50, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x53, 0x68, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, - 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, - 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, - 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, - 0x61, 0x64, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterType((*Shard)(nil), "protobuf.Shard") + proto.RegisterType((*PublicShardInfo)(nil), "protobuf.PublicShardInfo") + proto.RegisterType((*CommunityPublicShardInfo)(nil), "protobuf.CommunityPublicShardInfo") } -var ( - file_shard_proto_rawDescOnce sync.Once - file_shard_proto_rawDescData = file_shard_proto_rawDesc -) - -func file_shard_proto_rawDescGZIP() []byte { - file_shard_proto_rawDescOnce.Do(func() { - file_shard_proto_rawDescData = protoimpl.X.CompressGZIP(file_shard_proto_rawDescData) - }) - return file_shard_proto_rawDescData +func init() { + proto.RegisterFile("shard.proto", fileDescriptor_319ea41e44cdc364) } -var file_shard_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_shard_proto_goTypes = []interface{}{ - (*Shard)(nil), // 0: protobuf.Shard - (*PublicShardInfo)(nil), // 1: protobuf.PublicShardInfo - (*CommunityPublicShardInfo)(nil), // 2: protobuf.CommunityPublicShardInfo -} -var file_shard_proto_depIdxs = []int32{ - 0, // 0: protobuf.PublicShardInfo.shard:type_name -> protobuf.Shard - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_shard_proto_init() } -func file_shard_proto_init() { - if File_shard_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_shard_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Shard); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_shard_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PublicShardInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_shard_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommunityPublicShardInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_shard_proto_rawDesc, - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_shard_proto_goTypes, - DependencyIndexes: file_shard_proto_depIdxs, - MessageInfos: file_shard_proto_msgTypes, - }.Build() - File_shard_proto = out.File - file_shard_proto_rawDesc = nil - file_shard_proto_goTypes = nil - file_shard_proto_depIdxs = nil +var fileDescriptor_319ea41e44cdc364 = []byte{ + // 231 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8e, 0x3d, 0x4f, 0x04, 0x21, + 0x10, 0x86, 0x83, 0x1e, 0x7e, 0x0c, 0x6b, 0x2e, 0x21, 0x16, 0x14, 0x16, 0xe7, 0x26, 0x26, 0x57, + 0x61, 0xa2, 0x85, 0x85, 0x9d, 0x56, 0xdb, 0x19, 0xec, 0x6c, 0x0c, 0x0b, 0x7b, 0x1e, 0x91, 0x83, + 0x0b, 0x0b, 0x89, 0xf7, 0x1b, 0xfc, 0xd3, 0x66, 0x67, 0x83, 0x26, 0x56, 0xf0, 0xbe, 0x03, 0xcf, + 0x3c, 0xc0, 0xc6, 0xad, 0x4e, 0x56, 0xee, 0x53, 0xcc, 0x91, 0x9f, 0xe1, 0xd1, 0x97, 0x4d, 0xfb, + 0x00, 0xf4, 0x75, 0x1a, 0x70, 0x01, 0xa7, 0xc6, 0x97, 0x31, 0x0f, 0x49, 0x90, 0x15, 0x59, 0x53, + 0x55, 0x23, 0xbf, 0x04, 0xea, 0x82, 0x1d, 0xbe, 0xc4, 0x11, 0xf6, 0x73, 0x68, 0xbf, 0x09, 0x2c, + 0x5f, 0x4a, 0xef, 0x9d, 0xc1, 0xff, 0x5d, 0xd8, 0xc4, 0xe9, 0xa5, 0xf1, 0xd1, 0x7c, 0x22, 0x61, + 0xa1, 0xe6, 0xc0, 0xaf, 0xa1, 0x31, 0x71, 0xb7, 0x2b, 0xc1, 0xe5, 0xc3, 0xbb, 0xb3, 0x88, 0x69, + 0x14, 0xfb, 0xed, 0x3a, 0xcb, 0x6f, 0x80, 0xa2, 0x9e, 0x38, 0x5e, 0x91, 0x35, 0xbb, 0x5b, 0xca, + 0xea, 0x27, 0x11, 0xae, 0xe6, 0x29, 0x3a, 0x6e, 0xb5, 0x0b, 0x9d, 0x15, 0x0b, 0xdc, 0x50, 0x63, + 0xab, 0x40, 0x3c, 0x57, 0xde, 0x7f, 0xab, 0x2b, 0x38, 0x1f, 0xdd, 0x47, 0xd0, 0xb9, 0xa4, 0x01, + 0xcd, 0x1a, 0xf5, 0x57, 0x4c, 0xcc, 0xbd, 0x3e, 0xf8, 0xa8, 0xab, 0x58, 0x8d, 0x4f, 0x17, 0x6f, + 0x4c, 0xde, 0x3e, 0x56, 0x93, 0xfe, 0x04, 0x6f, 0xf7, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa5, + 0xbd, 0x3b, 0xd5, 0x49, 0x01, 0x00, 0x00, } diff --git a/protocol/protobuf/status_update.pb.go b/protocol/protobuf/status_update.pb.go index 409302f82..399b7d5a1 100644 --- a/protocol/protobuf/status_update.pb.go +++ b/protocol/protobuf/status_update.pb.go @@ -1,24 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: status_update.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type StatusUpdate_StatusType int32 @@ -30,49 +30,28 @@ const ( StatusUpdate_INACTIVE StatusUpdate_StatusType = 4 ) -// Enum value maps for StatusUpdate_StatusType. -var ( - StatusUpdate_StatusType_name = map[int32]string{ - 0: "UNKNOWN_STATUS_TYPE", - 1: "AUTOMATIC", - 2: "DO_NOT_DISTURB", - 3: "ALWAYS_ONLINE", - 4: "INACTIVE", - } - StatusUpdate_StatusType_value = map[string]int32{ - "UNKNOWN_STATUS_TYPE": 0, - "AUTOMATIC": 1, - "DO_NOT_DISTURB": 2, - "ALWAYS_ONLINE": 3, - "INACTIVE": 4, - } -) +var StatusUpdate_StatusType_name = map[int32]string{ + 0: "UNKNOWN_STATUS_TYPE", + 1: "AUTOMATIC", + 2: "DO_NOT_DISTURB", + 3: "ALWAYS_ONLINE", + 4: "INACTIVE", +} -func (x StatusUpdate_StatusType) Enum() *StatusUpdate_StatusType { - p := new(StatusUpdate_StatusType) - *p = x - return p +var StatusUpdate_StatusType_value = map[string]int32{ + "UNKNOWN_STATUS_TYPE": 0, + "AUTOMATIC": 1, + "DO_NOT_DISTURB": 2, + "ALWAYS_ONLINE": 3, + "INACTIVE": 4, } func (x StatusUpdate_StatusType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(StatusUpdate_StatusType_name, int32(x)) } -func (StatusUpdate_StatusType) Descriptor() protoreflect.EnumDescriptor { - return file_status_update_proto_enumTypes[0].Descriptor() -} - -func (StatusUpdate_StatusType) Type() protoreflect.EnumType { - return &file_status_update_proto_enumTypes[0] -} - -func (x StatusUpdate_StatusType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use StatusUpdate_StatusType.Descriptor instead. func (StatusUpdate_StatusType) EnumDescriptor() ([]byte, []int) { - return file_status_update_proto_rawDescGZIP(), []int{0, 0} + return fileDescriptor_911acd91e62cd3d7, []int{0, 0} } // Specs: @@ -87,155 +66,85 @@ func (StatusUpdate_StatusType) EnumDescriptor() ([]byte, []int) { // Display - Offline forever // Note: Only send pings if the user interacted with the app in the last x minutes. type StatusUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` - StatusType StatusUpdate_StatusType `protobuf:"varint,2,opt,name=status_type,json=statusType,proto3,enum=protobuf.StatusUpdate_StatusType" json:"status_type,omitempty"` - CustomText string `protobuf:"bytes,3,opt,name=custom_text,json=customText,proto3" json:"custom_text,omitempty"` + Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` + StatusType StatusUpdate_StatusType `protobuf:"varint,2,opt,name=status_type,json=statusType,proto3,enum=protobuf.StatusUpdate_StatusType" json:"status_type,omitempty"` + CustomText string `protobuf:"bytes,3,opt,name=custom_text,json=customText,proto3" json:"custom_text,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *StatusUpdate) Reset() { - *x = StatusUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_status_update_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StatusUpdate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StatusUpdate) ProtoMessage() {} - -func (x *StatusUpdate) ProtoReflect() protoreflect.Message { - mi := &file_status_update_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StatusUpdate.ProtoReflect.Descriptor instead. +func (m *StatusUpdate) Reset() { *m = StatusUpdate{} } +func (m *StatusUpdate) String() string { return proto.CompactTextString(m) } +func (*StatusUpdate) ProtoMessage() {} func (*StatusUpdate) Descriptor() ([]byte, []int) { - return file_status_update_proto_rawDescGZIP(), []int{0} + return fileDescriptor_911acd91e62cd3d7, []int{0} } -func (x *StatusUpdate) GetClock() uint64 { - if x != nil { - return x.Clock +func (m *StatusUpdate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StatusUpdate.Unmarshal(m, b) +} +func (m *StatusUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StatusUpdate.Marshal(b, m, deterministic) +} +func (m *StatusUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatusUpdate.Merge(m, src) +} +func (m *StatusUpdate) XXX_Size() int { + return xxx_messageInfo_StatusUpdate.Size(m) +} +func (m *StatusUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_StatusUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_StatusUpdate proto.InternalMessageInfo + +func (m *StatusUpdate) GetClock() uint64 { + if m != nil { + return m.Clock } return 0 } -func (x *StatusUpdate) GetStatusType() StatusUpdate_StatusType { - if x != nil { - return x.StatusType +func (m *StatusUpdate) GetStatusType() StatusUpdate_StatusType { + if m != nil { + return m.StatusType } return StatusUpdate_UNKNOWN_STATUS_TYPE } -func (x *StatusUpdate) GetCustomText() string { - if x != nil { - return x.CustomText +func (m *StatusUpdate) GetCustomText() string { + if m != nil { + return m.CustomText } return "" } -var File_status_update_proto protoreflect.FileDescriptor - -var file_status_update_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, - 0xf4, 0x01, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x42, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x75, - 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x54, 0x65, 0x78, 0x74, 0x22, 0x69, 0x0a, 0x0a, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x55, 0x4e, 0x4b, - 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x55, 0x54, 0x4f, 0x4d, 0x41, 0x54, 0x49, 0x43, 0x10, - 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x4f, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x44, 0x49, 0x53, 0x54, - 0x55, 0x52, 0x42, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x4c, 0x57, 0x41, 0x59, 0x53, 0x5f, - 0x4f, 0x4e, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x41, 0x43, - 0x54, 0x49, 0x56, 0x45, 0x10, 0x04, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterEnum("protobuf.StatusUpdate_StatusType", StatusUpdate_StatusType_name, StatusUpdate_StatusType_value) + proto.RegisterType((*StatusUpdate)(nil), "protobuf.StatusUpdate") } -var ( - file_status_update_proto_rawDescOnce sync.Once - file_status_update_proto_rawDescData = file_status_update_proto_rawDesc -) - -func file_status_update_proto_rawDescGZIP() []byte { - file_status_update_proto_rawDescOnce.Do(func() { - file_status_update_proto_rawDescData = protoimpl.X.CompressGZIP(file_status_update_proto_rawDescData) - }) - return file_status_update_proto_rawDescData +func init() { + proto.RegisterFile("status_update.proto", fileDescriptor_911acd91e62cd3d7) } -var file_status_update_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_status_update_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_status_update_proto_goTypes = []interface{}{ - (StatusUpdate_StatusType)(0), // 0: protobuf.StatusUpdate.StatusType - (*StatusUpdate)(nil), // 1: protobuf.StatusUpdate -} -var file_status_update_proto_depIdxs = []int32{ - 0, // 0: protobuf.StatusUpdate.status_type:type_name -> protobuf.StatusUpdate.StatusType - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_status_update_proto_init() } -func file_status_update_proto_init() { - if File_status_update_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_status_update_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatusUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_status_update_proto_rawDesc, - NumEnums: 1, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_status_update_proto_goTypes, - DependencyIndexes: file_status_update_proto_depIdxs, - EnumInfos: file_status_update_proto_enumTypes, - MessageInfos: file_status_update_proto_msgTypes, - }.Build() - File_status_update_proto = out.File - file_status_update_proto_rawDesc = nil - file_status_update_proto_goTypes = nil - file_status_update_proto_depIdxs = nil +var fileDescriptor_911acd91e62cd3d7 = []byte{ + // 253 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x8e, 0xc1, 0x4e, 0xc2, 0x40, + 0x10, 0x86, 0x5d, 0x40, 0x03, 0x53, 0x4a, 0xea, 0x60, 0x62, 0x6f, 0x56, 0x4e, 0x3d, 0xd5, 0x44, + 0x8f, 0x9e, 0xb6, 0xd0, 0x43, 0x23, 0x6e, 0x4d, 0x77, 0x56, 0x82, 0x97, 0x0d, 0xd4, 0x35, 0x31, + 0x6a, 0xda, 0xd8, 0x6d, 0x02, 0xef, 0xed, 0x03, 0x98, 0x14, 0x50, 0x4e, 0xf3, 0xff, 0x93, 0x6f, + 0xbe, 0x0c, 0x8c, 0x6b, 0xbb, 0xb2, 0x4d, 0xad, 0x9b, 0xea, 0x75, 0x65, 0x4d, 0x54, 0x7d, 0x97, + 0xb6, 0xc4, 0x7e, 0x3b, 0xd6, 0xcd, 0xdb, 0xe4, 0x87, 0xc1, 0x50, 0xb6, 0x84, 0x6a, 0x01, 0xbc, + 0x80, 0xd3, 0xe2, 0xb3, 0x2c, 0x3e, 0x7c, 0x16, 0xb0, 0xb0, 0x97, 0xef, 0x0a, 0xc6, 0xe0, 0xec, + 0x3d, 0x76, 0x5b, 0x19, 0xbf, 0x13, 0xb0, 0x70, 0x74, 0x7b, 0x1d, 0x1d, 0x34, 0xd1, 0xb1, 0x62, + 0x5f, 0x68, 0x5b, 0x99, 0x1c, 0xea, 0xbf, 0x8c, 0x57, 0xe0, 0x14, 0x4d, 0x6d, 0xcb, 0x2f, 0x6d, + 0xcd, 0xc6, 0xfa, 0xdd, 0x80, 0x85, 0x83, 0x1c, 0x76, 0x2b, 0x32, 0x1b, 0x3b, 0x79, 0x07, 0xf8, + 0x3f, 0xc5, 0x4b, 0x18, 0x2b, 0xf1, 0x20, 0xb2, 0x85, 0xd0, 0x92, 0x38, 0x29, 0xa9, 0x69, 0xf9, + 0x94, 0x78, 0x27, 0xe8, 0xc2, 0x80, 0x2b, 0xca, 0x1e, 0x39, 0xa5, 0x53, 0x8f, 0x21, 0xc2, 0x68, + 0x96, 0x69, 0x91, 0x91, 0x9e, 0xa5, 0x92, 0x54, 0x1e, 0x7b, 0x1d, 0x3c, 0x07, 0x97, 0xcf, 0x17, + 0x7c, 0x29, 0x75, 0x26, 0xe6, 0xa9, 0x48, 0xbc, 0x2e, 0x0e, 0xa1, 0x9f, 0x0a, 0x3e, 0xa5, 0xf4, + 0x39, 0xf1, 0x7a, 0xb1, 0xfb, 0xe2, 0x44, 0x37, 0xf7, 0x87, 0xf7, 0xd7, 0x67, 0x6d, 0xba, 0xfb, + 0x0d, 0x00, 0x00, 0xff, 0xff, 0xaa, 0xa1, 0x52, 0x1d, 0x2d, 0x01, 0x00, 0x00, } diff --git a/protocol/protobuf/sync_settings.pb.go b/protocol/protobuf/sync_settings.pb.go index 9d1fba07b..7eeb03405 100644 --- a/protocol/protobuf/sync_settings.pb.go +++ b/protocol/protobuf/sync_settings.pb.go @@ -1,24 +1,24 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: sync_settings.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type SyncSetting_Type int32 @@ -45,174 +45,110 @@ const ( SyncSetting_DISPLAY_ASSETS_BELOW_BALANCE_THRESHOLD SyncSetting_Type = 21 ) -// Enum value maps for SyncSetting_Type. -var ( - SyncSetting_Type_name = map[int32]string{ - 0: "UNKNOWN", - 1: "CURRENCY", - 2: "GIF_RECENTS", - 3: "GIF_FAVOURITES", - 4: "MESSAGES_FROM_CONTACTS_ONLY", - 5: "PREFERRED_NAME", - 6: "PREVIEW_PRIVACY", - 7: "PROFILE_PICTURES_SHOW_TO", - 8: "PROFILE_PICTURES_VISIBILITY", - 9: "SEND_STATUS_UPDATES", - 10: "STICKERS_PACKS_INSTALLED", - 11: "STICKERS_PACKS_PENDING", - 12: "STICKERS_RECENT_STICKERS", - 13: "DISPLAY_NAME", - 14: "BIO", - 15: "MNEMONIC_REMOVED", - 18: "URL_UNFURLING_MODE", - 19: "SHOW_COMMUNITY_ASSET_WHEN_SENDING_TOKENS", - 20: "DISPLAY_ASSETS_BELOW_BALANCE", - 21: "DISPLAY_ASSETS_BELOW_BALANCE_THRESHOLD", - } - SyncSetting_Type_value = map[string]int32{ - "UNKNOWN": 0, - "CURRENCY": 1, - "GIF_RECENTS": 2, - "GIF_FAVOURITES": 3, - "MESSAGES_FROM_CONTACTS_ONLY": 4, - "PREFERRED_NAME": 5, - "PREVIEW_PRIVACY": 6, - "PROFILE_PICTURES_SHOW_TO": 7, - "PROFILE_PICTURES_VISIBILITY": 8, - "SEND_STATUS_UPDATES": 9, - "STICKERS_PACKS_INSTALLED": 10, - "STICKERS_PACKS_PENDING": 11, - "STICKERS_RECENT_STICKERS": 12, - "DISPLAY_NAME": 13, - "BIO": 14, - "MNEMONIC_REMOVED": 15, - "URL_UNFURLING_MODE": 18, - "SHOW_COMMUNITY_ASSET_WHEN_SENDING_TOKENS": 19, - "DISPLAY_ASSETS_BELOW_BALANCE": 20, - "DISPLAY_ASSETS_BELOW_BALANCE_THRESHOLD": 21, - } -) +var SyncSetting_Type_name = map[int32]string{ + 0: "UNKNOWN", + 1: "CURRENCY", + 2: "GIF_RECENTS", + 3: "GIF_FAVOURITES", + 4: "MESSAGES_FROM_CONTACTS_ONLY", + 5: "PREFERRED_NAME", + 6: "PREVIEW_PRIVACY", + 7: "PROFILE_PICTURES_SHOW_TO", + 8: "PROFILE_PICTURES_VISIBILITY", + 9: "SEND_STATUS_UPDATES", + 10: "STICKERS_PACKS_INSTALLED", + 11: "STICKERS_PACKS_PENDING", + 12: "STICKERS_RECENT_STICKERS", + 13: "DISPLAY_NAME", + 14: "BIO", + 15: "MNEMONIC_REMOVED", + 18: "URL_UNFURLING_MODE", + 19: "SHOW_COMMUNITY_ASSET_WHEN_SENDING_TOKENS", + 20: "DISPLAY_ASSETS_BELOW_BALANCE", + 21: "DISPLAY_ASSETS_BELOW_BALANCE_THRESHOLD", +} -func (x SyncSetting_Type) Enum() *SyncSetting_Type { - p := new(SyncSetting_Type) - *p = x - return p +var SyncSetting_Type_value = map[string]int32{ + "UNKNOWN": 0, + "CURRENCY": 1, + "GIF_RECENTS": 2, + "GIF_FAVOURITES": 3, + "MESSAGES_FROM_CONTACTS_ONLY": 4, + "PREFERRED_NAME": 5, + "PREVIEW_PRIVACY": 6, + "PROFILE_PICTURES_SHOW_TO": 7, + "PROFILE_PICTURES_VISIBILITY": 8, + "SEND_STATUS_UPDATES": 9, + "STICKERS_PACKS_INSTALLED": 10, + "STICKERS_PACKS_PENDING": 11, + "STICKERS_RECENT_STICKERS": 12, + "DISPLAY_NAME": 13, + "BIO": 14, + "MNEMONIC_REMOVED": 15, + "URL_UNFURLING_MODE": 18, + "SHOW_COMMUNITY_ASSET_WHEN_SENDING_TOKENS": 19, + "DISPLAY_ASSETS_BELOW_BALANCE": 20, + "DISPLAY_ASSETS_BELOW_BALANCE_THRESHOLD": 21, } func (x SyncSetting_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(SyncSetting_Type_name, int32(x)) } -func (SyncSetting_Type) Descriptor() protoreflect.EnumDescriptor { - return file_sync_settings_proto_enumTypes[0].Descriptor() -} - -func (SyncSetting_Type) Type() protoreflect.EnumType { - return &file_sync_settings_proto_enumTypes[0] -} - -func (x SyncSetting_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use SyncSetting_Type.Descriptor instead. func (SyncSetting_Type) EnumDescriptor() ([]byte, []int) { - return file_sync_settings_proto_rawDescGZIP(), []int{0, 0} + return fileDescriptor_e2f7a0bce2873c78, []int{0, 0} } type SyncSetting struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - Type SyncSetting_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protobuf.SyncSetting_Type" json:"type,omitempty"` Clock uint64 `protobuf:"varint,2,opt,name=clock,proto3" json:"clock,omitempty"` - // Types that are assignable to Value: + // Types that are valid to be assigned to Value: // // *SyncSetting_ValueString // *SyncSetting_ValueBytes // *SyncSetting_ValueBool // *SyncSetting_ValueInt64 - Value isSyncSetting_Value `protobuf_oneof:"value"` + Value isSyncSetting_Value `protobuf_oneof:"value"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SyncSetting) Reset() { - *x = SyncSetting{} - if protoimpl.UnsafeEnabled { - mi := &file_sync_settings_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SyncSetting) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SyncSetting) ProtoMessage() {} - -func (x *SyncSetting) ProtoReflect() protoreflect.Message { - mi := &file_sync_settings_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SyncSetting.ProtoReflect.Descriptor instead. +func (m *SyncSetting) Reset() { *m = SyncSetting{} } +func (m *SyncSetting) String() string { return proto.CompactTextString(m) } +func (*SyncSetting) ProtoMessage() {} func (*SyncSetting) Descriptor() ([]byte, []int) { - return file_sync_settings_proto_rawDescGZIP(), []int{0} + return fileDescriptor_e2f7a0bce2873c78, []int{0} } -func (x *SyncSetting) GetType() SyncSetting_Type { - if x != nil { - return x.Type +func (m *SyncSetting) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SyncSetting.Unmarshal(m, b) +} +func (m *SyncSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SyncSetting.Marshal(b, m, deterministic) +} +func (m *SyncSetting) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncSetting.Merge(m, src) +} +func (m *SyncSetting) XXX_Size() int { + return xxx_messageInfo_SyncSetting.Size(m) +} +func (m *SyncSetting) XXX_DiscardUnknown() { + xxx_messageInfo_SyncSetting.DiscardUnknown(m) +} + +var xxx_messageInfo_SyncSetting proto.InternalMessageInfo + +func (m *SyncSetting) GetType() SyncSetting_Type { + if m != nil { + return m.Type } return SyncSetting_UNKNOWN } -func (x *SyncSetting) GetClock() uint64 { - if x != nil { - return x.Clock - } - return 0 -} - -func (m *SyncSetting) GetValue() isSyncSetting_Value { +func (m *SyncSetting) GetClock() uint64 { if m != nil { - return m.Value - } - return nil -} - -func (x *SyncSetting) GetValueString() string { - if x, ok := x.GetValue().(*SyncSetting_ValueString); ok { - return x.ValueString - } - return "" -} - -func (x *SyncSetting) GetValueBytes() []byte { - if x, ok := x.GetValue().(*SyncSetting_ValueBytes); ok { - return x.ValueBytes - } - return nil -} - -func (x *SyncSetting) GetValueBool() bool { - if x, ok := x.GetValue().(*SyncSetting_ValueBool); ok { - return x.ValueBool - } - return false -} - -func (x *SyncSetting) GetValueInt64() int64 { - if x, ok := x.GetValue().(*SyncSetting_ValueInt64); ok { - return x.ValueInt64 + return m.Clock } return 0 } @@ -245,134 +181,98 @@ func (*SyncSetting_ValueBool) isSyncSetting_Value() {} func (*SyncSetting_ValueInt64) isSyncSetting_Value() {} -var File_sync_settings_proto protoreflect.FileDescriptor - -var file_sync_settings_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, - 0xa6, 0x06, 0x0a, 0x0b, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, - 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x65, 0x74, - 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, - 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x23, 0x0a, 0x0c, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x73, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x21, 0x0a, 0x0b, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x48, - 0x00, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1f, 0x0a, - 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x08, 0x48, 0x00, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x21, - 0x0a, 0x0b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x6e, 0x74, 0x36, - 0x34, 0x22, 0xbb, 0x04, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, - 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x55, 0x52, 0x52, 0x45, - 0x4e, 0x43, 0x59, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x47, 0x49, 0x46, 0x5f, 0x52, 0x45, 0x43, - 0x45, 0x4e, 0x54, 0x53, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x47, 0x49, 0x46, 0x5f, 0x46, 0x41, - 0x56, 0x4f, 0x55, 0x52, 0x49, 0x54, 0x45, 0x53, 0x10, 0x03, 0x12, 0x1f, 0x0a, 0x1b, 0x4d, 0x45, - 0x53, 0x53, 0x41, 0x47, 0x45, 0x53, 0x5f, 0x46, 0x52, 0x4f, 0x4d, 0x5f, 0x43, 0x4f, 0x4e, 0x54, - 0x41, 0x43, 0x54, 0x53, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x50, - 0x52, 0x45, 0x46, 0x45, 0x52, 0x52, 0x45, 0x44, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x05, 0x12, - 0x13, 0x0a, 0x0f, 0x50, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41, - 0x43, 0x59, 0x10, 0x06, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x52, 0x4f, 0x46, 0x49, 0x4c, 0x45, 0x5f, - 0x50, 0x49, 0x43, 0x54, 0x55, 0x52, 0x45, 0x53, 0x5f, 0x53, 0x48, 0x4f, 0x57, 0x5f, 0x54, 0x4f, - 0x10, 0x07, 0x12, 0x1f, 0x0a, 0x1b, 0x50, 0x52, 0x4f, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x50, 0x49, - 0x43, 0x54, 0x55, 0x52, 0x45, 0x53, 0x5f, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, - 0x59, 0x10, 0x08, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x45, 0x4e, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x54, - 0x55, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x53, 0x10, 0x09, 0x12, 0x1c, 0x0a, 0x18, - 0x53, 0x54, 0x49, 0x43, 0x4b, 0x45, 0x52, 0x53, 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x53, 0x5f, 0x49, - 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x0a, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x54, - 0x49, 0x43, 0x4b, 0x45, 0x52, 0x53, 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x53, 0x5f, 0x50, 0x45, 0x4e, - 0x44, 0x49, 0x4e, 0x47, 0x10, 0x0b, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x49, 0x43, 0x4b, 0x45, - 0x52, 0x53, 0x5f, 0x52, 0x45, 0x43, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x49, 0x43, 0x4b, 0x45, - 0x52, 0x53, 0x10, 0x0c, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x49, 0x53, 0x50, 0x4c, 0x41, 0x59, 0x5f, - 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x0d, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x49, 0x4f, 0x10, 0x0e, 0x12, - 0x14, 0x0a, 0x10, 0x4d, 0x4e, 0x45, 0x4d, 0x4f, 0x4e, 0x49, 0x43, 0x5f, 0x52, 0x45, 0x4d, 0x4f, - 0x56, 0x45, 0x44, 0x10, 0x0f, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x52, 0x4c, 0x5f, 0x55, 0x4e, 0x46, - 0x55, 0x52, 0x4c, 0x49, 0x4e, 0x47, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x10, 0x12, 0x12, 0x2c, 0x0a, - 0x28, 0x53, 0x48, 0x4f, 0x57, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x5f, - 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x57, 0x48, 0x45, 0x4e, 0x5f, 0x53, 0x45, 0x4e, 0x44, 0x49, - 0x4e, 0x47, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x53, 0x10, 0x13, 0x12, 0x20, 0x0a, 0x1c, 0x44, - 0x49, 0x53, 0x50, 0x4c, 0x41, 0x59, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x53, 0x5f, 0x42, 0x45, - 0x4c, 0x4f, 0x57, 0x5f, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x14, 0x12, 0x2a, 0x0a, - 0x26, 0x44, 0x49, 0x53, 0x50, 0x4c, 0x41, 0x59, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x53, 0x5f, - 0x42, 0x45, 0x4c, 0x4f, 0x57, 0x5f, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x54, 0x48, - 0x52, 0x45, 0x53, 0x48, 0x4f, 0x4c, 0x44, 0x10, 0x15, 0x22, 0x04, 0x08, 0x10, 0x10, 0x10, 0x22, - 0x04, 0x08, 0x11, 0x10, 0x11, 0x2a, 0x0d, 0x45, 0x4e, 0x53, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x4e, - 0x41, 0x4d, 0x45, 0x53, 0x2a, 0x19, 0x49, 0x4e, 0x43, 0x4c, 0x55, 0x44, 0x45, 0x5f, 0x57, 0x41, - 0x54, 0x43, 0x48, 0x4f, 0x4e, 0x4c, 0x59, 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x42, - 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_sync_settings_proto_rawDescOnce sync.Once - file_sync_settings_proto_rawDescData = file_sync_settings_proto_rawDesc -) - -func file_sync_settings_proto_rawDescGZIP() []byte { - file_sync_settings_proto_rawDescOnce.Do(func() { - file_sync_settings_proto_rawDescData = protoimpl.X.CompressGZIP(file_sync_settings_proto_rawDescData) - }) - return file_sync_settings_proto_rawDescData -} - -var file_sync_settings_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_sync_settings_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_sync_settings_proto_goTypes = []interface{}{ - (SyncSetting_Type)(0), // 0: protobuf.SyncSetting.Type - (*SyncSetting)(nil), // 1: protobuf.SyncSetting -} -var file_sync_settings_proto_depIdxs = []int32{ - 0, // 0: protobuf.SyncSetting.type:type_name -> protobuf.SyncSetting.Type - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_sync_settings_proto_init() } -func file_sync_settings_proto_init() { - if File_sync_settings_proto != nil { - return +func (m *SyncSetting) GetValue() isSyncSetting_Value { + if m != nil { + return m.Value } - if !protoimpl.UnsafeEnabled { - file_sync_settings_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncSetting); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } + return nil +} + +func (m *SyncSetting) GetValueString() string { + if x, ok := m.GetValue().(*SyncSetting_ValueString); ok { + return x.ValueString } - file_sync_settings_proto_msgTypes[0].OneofWrappers = []interface{}{ + return "" +} + +func (m *SyncSetting) GetValueBytes() []byte { + if x, ok := m.GetValue().(*SyncSetting_ValueBytes); ok { + return x.ValueBytes + } + return nil +} + +func (m *SyncSetting) GetValueBool() bool { + if x, ok := m.GetValue().(*SyncSetting_ValueBool); ok { + return x.ValueBool + } + return false +} + +func (m *SyncSetting) GetValueInt64() int64 { + if x, ok := m.GetValue().(*SyncSetting_ValueInt64); ok { + return x.ValueInt64 + } + return 0 +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SyncSetting) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*SyncSetting_ValueString)(nil), (*SyncSetting_ValueBytes)(nil), (*SyncSetting_ValueBool)(nil), (*SyncSetting_ValueInt64)(nil), } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_sync_settings_proto_rawDesc, - NumEnums: 1, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_sync_settings_proto_goTypes, - DependencyIndexes: file_sync_settings_proto_depIdxs, - EnumInfos: file_sync_settings_proto_enumTypes, - MessageInfos: file_sync_settings_proto_msgTypes, - }.Build() - File_sync_settings_proto = out.File - file_sync_settings_proto_rawDesc = nil - file_sync_settings_proto_goTypes = nil - file_sync_settings_proto_depIdxs = nil +} + +func init() { + proto.RegisterEnum("protobuf.SyncSetting_Type", SyncSetting_Type_name, SyncSetting_Type_value) + proto.RegisterType((*SyncSetting)(nil), "protobuf.SyncSetting") +} + +func init() { + proto.RegisterFile("sync_settings.proto", fileDescriptor_e2f7a0bce2873c78) +} + +var fileDescriptor_e2f7a0bce2873c78 = []byte{ + // 601 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0x5b, 0x6f, 0x1a, 0x3b, + 0x10, 0xc7, 0xd9, 0xb0, 0x5c, 0x62, 0x48, 0xe2, 0x98, 0x9c, 0x1c, 0x4e, 0x4e, 0xa4, 0x50, 0x2a, + 0x55, 0x28, 0xaa, 0xa8, 0xd4, 0x56, 0x7d, 0xe9, 0x93, 0xf1, 0x0e, 0xac, 0xc5, 0xae, 0xbd, 0xb2, + 0xbd, 0x20, 0xfa, 0x32, 0x6a, 0x10, 0x8d, 0xa2, 0x22, 0x88, 0x02, 0xa9, 0xc4, 0x17, 0xea, 0x97, + 0xe8, 0x97, 0xab, 0x76, 0xb7, 0xf4, 0x2a, 0xf5, 0xc9, 0x9e, 0xff, 0xfc, 0xe6, 0xe6, 0x0b, 0x69, + 0x6d, 0x76, 0xab, 0x39, 0x6e, 0x16, 0xdb, 0xed, 0xdd, 0xea, 0x76, 0xd3, 0xbf, 0x7f, 0x58, 0x6f, + 0xd7, 0xac, 0x9e, 0x2f, 0x37, 0x8f, 0x1f, 0xba, 0x9f, 0xab, 0xa4, 0x61, 0x77, 0xab, 0xb9, 0x2d, + 0x00, 0xd6, 0x27, 0xfe, 0x76, 0x77, 0xbf, 0x68, 0x7b, 0x1d, 0xaf, 0x77, 0xfc, 0xf2, 0xa2, 0xbf, + 0x07, 0xfb, 0x3f, 0x41, 0x7d, 0xb7, 0xbb, 0x5f, 0x98, 0x9c, 0x63, 0x67, 0xa4, 0x32, 0x5f, 0xae, + 0xe7, 0x1f, 0xdb, 0x07, 0x1d, 0xaf, 0xe7, 0x9b, 0xc2, 0x60, 0x4f, 0x49, 0xf3, 0xd3, 0xfb, 0xe5, + 0xe3, 0x02, 0x37, 0xdb, 0x87, 0xbb, 0xd5, 0x6d, 0xbb, 0xdc, 0xf1, 0x7a, 0x87, 0x61, 0xc9, 0x34, + 0x72, 0xd5, 0xe6, 0x22, 0x7b, 0x42, 0x0a, 0x13, 0x6f, 0x76, 0xdb, 0xc5, 0xa6, 0xed, 0x77, 0xbc, + 0x5e, 0x33, 0x2c, 0x19, 0x92, 0x8b, 0x83, 0x4c, 0x63, 0x57, 0x84, 0x7c, 0x43, 0xd6, 0xeb, 0x65, + 0xbb, 0xd2, 0xf1, 0x7a, 0xf5, 0xb0, 0x64, 0x0e, 0x0b, 0x62, 0xbd, 0x5e, 0xfe, 0xc8, 0x71, 0xb7, + 0xda, 0xbe, 0x79, 0xdd, 0xae, 0x76, 0xbc, 0x5e, 0xf9, 0x7b, 0x0e, 0x99, 0x69, 0xdd, 0x2f, 0x3e, + 0xf1, 0xb3, 0x86, 0x59, 0x83, 0xd4, 0x52, 0x35, 0x56, 0x7a, 0xaa, 0x68, 0x89, 0x35, 0x49, 0x5d, + 0xa4, 0xc6, 0x80, 0x12, 0x33, 0xea, 0xb1, 0x13, 0xd2, 0x18, 0xc9, 0x21, 0x1a, 0x10, 0xa0, 0x9c, + 0xa5, 0x07, 0x8c, 0x91, 0xe3, 0x4c, 0x18, 0xf2, 0x89, 0x4e, 0x8d, 0x74, 0x60, 0x69, 0x99, 0x5d, + 0x91, 0xff, 0x63, 0xb0, 0x96, 0x8f, 0xc0, 0xe2, 0xd0, 0xe8, 0x18, 0x85, 0x56, 0x8e, 0x0b, 0x67, + 0x51, 0xab, 0x68, 0x46, 0xfd, 0x2c, 0x28, 0x31, 0x30, 0x04, 0x63, 0x20, 0x40, 0xc5, 0x63, 0xa0, + 0x15, 0xd6, 0x22, 0x27, 0x89, 0x81, 0x89, 0x84, 0x29, 0x26, 0x46, 0x4e, 0xb8, 0x98, 0xd1, 0x2a, + 0xbb, 0x24, 0xed, 0xc4, 0xe8, 0xa1, 0x8c, 0x00, 0x13, 0x29, 0x5c, 0x6a, 0xc0, 0xa2, 0x0d, 0xf5, + 0x14, 0x9d, 0xa6, 0xb5, 0xac, 0xce, 0x1f, 0xde, 0x89, 0xb4, 0x72, 0x20, 0x23, 0xe9, 0x66, 0xb4, + 0xce, 0xfe, 0x25, 0x2d, 0x0b, 0x2a, 0x40, 0xeb, 0xb8, 0x4b, 0x2d, 0xa6, 0x49, 0xc0, 0xb3, 0x0e, + 0x0f, 0xb3, 0xbc, 0xd6, 0x49, 0x31, 0x06, 0x63, 0x31, 0xe1, 0x62, 0x6c, 0x51, 0x2a, 0xeb, 0x78, + 0x14, 0x41, 0x40, 0x09, 0xbb, 0x20, 0xe7, 0xbf, 0x79, 0x13, 0x50, 0x81, 0x54, 0x23, 0xda, 0xf8, + 0x25, 0xb2, 0x38, 0x05, 0xdc, 0xdb, 0xb4, 0xc9, 0x28, 0x69, 0x06, 0xd2, 0x26, 0x11, 0x9f, 0x15, + 0x63, 0x1d, 0xb1, 0x1a, 0x29, 0x0f, 0xa4, 0xa6, 0xc7, 0xec, 0x8c, 0xd0, 0x58, 0x41, 0xac, 0x95, + 0x14, 0x68, 0x20, 0xd6, 0x13, 0x08, 0xe8, 0x09, 0x3b, 0x27, 0x2c, 0x35, 0x11, 0xa6, 0x6a, 0x98, + 0x9a, 0x48, 0xaa, 0x11, 0xc6, 0x3a, 0x00, 0xca, 0xd8, 0x73, 0xd2, 0xcb, 0xe7, 0x14, 0x3a, 0x8e, + 0x53, 0x25, 0xdd, 0x0c, 0xb9, 0xb5, 0xe0, 0x70, 0x1a, 0x82, 0x42, 0x5b, 0x74, 0x83, 0x4e, 0x8f, + 0x41, 0x59, 0xda, 0x62, 0x1d, 0x72, 0xb9, 0x2f, 0x9b, 0x63, 0x16, 0x07, 0x10, 0xe9, 0x29, 0x0e, + 0x78, 0xc4, 0x95, 0x00, 0x7a, 0xc6, 0xae, 0xc9, 0xb3, 0xbf, 0x11, 0xe8, 0x42, 0x03, 0x36, 0xd4, + 0x51, 0x40, 0xff, 0xe9, 0xfa, 0x75, 0x4a, 0x69, 0xd7, 0xaf, 0x9f, 0xd2, 0xd3, 0xeb, 0x23, 0x50, + 0x16, 0x53, 0x0b, 0x26, 0x1b, 0xc7, 0x5e, 0xff, 0x27, 0x95, 0x88, 0xd2, 0x00, 0x70, 0xca, 0x9d, + 0x08, 0xb3, 0xdb, 0x44, 0x2e, 0x84, 0x4e, 0x95, 0x1b, 0xd4, 0x48, 0xa5, 0x78, 0x6d, 0x47, 0xef, + 0x1a, 0xfd, 0x17, 0x6f, 0xf7, 0xdf, 0xe1, 0xa6, 0x9a, 0xef, 0x5e, 0x7d, 0x0d, 0x00, 0x00, 0xff, + 0xff, 0x57, 0x49, 0x09, 0x47, 0x5f, 0x03, 0x00, 0x00, } diff --git a/protocol/protobuf/url_data.pb.go b/protocol/protobuf/url_data.pb.go index d8a9ee00c..5ce9fc21f 100644 --- a/protocol/protobuf/url_data.pb.go +++ b/protocol/protobuf/url_data.pb.go @@ -1,455 +1,310 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.29.1 -// protoc v3.20.3 // source: url_data.proto package protobuf import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Community struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - MembersCount uint32 `protobuf:"varint,3,opt,name=members_count,json=membersCount,proto3" json:"members_count,omitempty"` - Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` - TagIndices []uint32 `protobuf:"varint,5,rep,packed,name=tag_indices,json=tagIndices,proto3" json:"tag_indices,omitempty"` + DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + MembersCount uint32 `protobuf:"varint,3,opt,name=members_count,json=membersCount,proto3" json:"members_count,omitempty"` + Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` + TagIndices []uint32 `protobuf:"varint,5,rep,packed,name=tag_indices,json=tagIndices,proto3" json:"tag_indices,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Community) Reset() { - *x = Community{} - if protoimpl.UnsafeEnabled { - mi := &file_url_data_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Community) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Community) ProtoMessage() {} - -func (x *Community) ProtoReflect() protoreflect.Message { - mi := &file_url_data_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Community.ProtoReflect.Descriptor instead. +func (m *Community) Reset() { *m = Community{} } +func (m *Community) String() string { return proto.CompactTextString(m) } +func (*Community) ProtoMessage() {} func (*Community) Descriptor() ([]byte, []int) { - return file_url_data_proto_rawDescGZIP(), []int{0} + return fileDescriptor_5f1e15b5f0115710, []int{0} } -func (x *Community) GetDisplayName() string { - if x != nil { - return x.DisplayName +func (m *Community) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Community.Unmarshal(m, b) +} +func (m *Community) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Community.Marshal(b, m, deterministic) +} +func (m *Community) XXX_Merge(src proto.Message) { + xxx_messageInfo_Community.Merge(m, src) +} +func (m *Community) XXX_Size() int { + return xxx_messageInfo_Community.Size(m) +} +func (m *Community) XXX_DiscardUnknown() { + xxx_messageInfo_Community.DiscardUnknown(m) +} + +var xxx_messageInfo_Community proto.InternalMessageInfo + +func (m *Community) GetDisplayName() string { + if m != nil { + return m.DisplayName } return "" } -func (x *Community) GetDescription() string { - if x != nil { - return x.Description +func (m *Community) GetDescription() string { + if m != nil { + return m.Description } return "" } -func (x *Community) GetMembersCount() uint32 { - if x != nil { - return x.MembersCount +func (m *Community) GetMembersCount() uint32 { + if m != nil { + return m.MembersCount } return 0 } -func (x *Community) GetColor() string { - if x != nil { - return x.Color +func (m *Community) GetColor() string { + if m != nil { + return m.Color } return "" } -func (x *Community) GetTagIndices() []uint32 { - if x != nil { - return x.TagIndices +func (m *Community) GetTagIndices() []uint32 { + if m != nil { + return m.TagIndices } return nil } type Channel struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - Emoji string `protobuf:"bytes,3,opt,name=emoji,proto3" json:"emoji,omitempty"` - Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` - Community *Community `protobuf:"bytes,5,opt,name=community,proto3" json:"community,omitempty"` - Uuid string `protobuf:"bytes,6,opt,name=uuid,proto3" json:"uuid,omitempty"` + DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Emoji string `protobuf:"bytes,3,opt,name=emoji,proto3" json:"emoji,omitempty"` + Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` + Community *Community `protobuf:"bytes,5,opt,name=community,proto3" json:"community,omitempty"` + Uuid string `protobuf:"bytes,6,opt,name=uuid,proto3" json:"uuid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Channel) Reset() { - *x = Channel{} - if protoimpl.UnsafeEnabled { - mi := &file_url_data_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Channel) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Channel) ProtoMessage() {} - -func (x *Channel) ProtoReflect() protoreflect.Message { - mi := &file_url_data_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Channel.ProtoReflect.Descriptor instead. +func (m *Channel) Reset() { *m = Channel{} } +func (m *Channel) String() string { return proto.CompactTextString(m) } +func (*Channel) ProtoMessage() {} func (*Channel) Descriptor() ([]byte, []int) { - return file_url_data_proto_rawDescGZIP(), []int{1} + return fileDescriptor_5f1e15b5f0115710, []int{1} } -func (x *Channel) GetDisplayName() string { - if x != nil { - return x.DisplayName +func (m *Channel) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Channel.Unmarshal(m, b) +} +func (m *Channel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Channel.Marshal(b, m, deterministic) +} +func (m *Channel) XXX_Merge(src proto.Message) { + xxx_messageInfo_Channel.Merge(m, src) +} +func (m *Channel) XXX_Size() int { + return xxx_messageInfo_Channel.Size(m) +} +func (m *Channel) XXX_DiscardUnknown() { + xxx_messageInfo_Channel.DiscardUnknown(m) +} + +var xxx_messageInfo_Channel proto.InternalMessageInfo + +func (m *Channel) GetDisplayName() string { + if m != nil { + return m.DisplayName } return "" } -func (x *Channel) GetDescription() string { - if x != nil { - return x.Description +func (m *Channel) GetDescription() string { + if m != nil { + return m.Description } return "" } -func (x *Channel) GetEmoji() string { - if x != nil { - return x.Emoji +func (m *Channel) GetEmoji() string { + if m != nil { + return m.Emoji } return "" } -func (x *Channel) GetColor() string { - if x != nil { - return x.Color +func (m *Channel) GetColor() string { + if m != nil { + return m.Color } return "" } -func (x *Channel) GetCommunity() *Community { - if x != nil { - return x.Community +func (m *Channel) GetCommunity() *Community { + if m != nil { + return m.Community } return nil } -func (x *Channel) GetUuid() string { - if x != nil { - return x.Uuid +func (m *Channel) GetUuid() string { + if m != nil { + return m.Uuid } return "" } type User struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"` + DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *User) Reset() { - *x = User{} - if protoimpl.UnsafeEnabled { - mi := &file_url_data_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *User) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*User) ProtoMessage() {} - -func (x *User) ProtoReflect() protoreflect.Message { - mi := &file_url_data_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use User.ProtoReflect.Descriptor instead. +func (m *User) Reset() { *m = User{} } +func (m *User) String() string { return proto.CompactTextString(m) } +func (*User) ProtoMessage() {} func (*User) Descriptor() ([]byte, []int) { - return file_url_data_proto_rawDescGZIP(), []int{2} + return fileDescriptor_5f1e15b5f0115710, []int{2} } -func (x *User) GetDisplayName() string { - if x != nil { - return x.DisplayName +func (m *User) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_User.Unmarshal(m, b) +} +func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_User.Marshal(b, m, deterministic) +} +func (m *User) XXX_Merge(src proto.Message) { + xxx_messageInfo_User.Merge(m, src) +} +func (m *User) XXX_Size() int { + return xxx_messageInfo_User.Size(m) +} +func (m *User) XXX_DiscardUnknown() { + xxx_messageInfo_User.DiscardUnknown(m) +} + +var xxx_messageInfo_User proto.InternalMessageInfo + +func (m *User) GetDisplayName() string { + if m != nil { + return m.DisplayName } return "" } -func (x *User) GetDescription() string { - if x != nil { - return x.Description +func (m *User) GetDescription() string { + if m != nil { + return m.Description } return "" } -func (x *User) GetColor() string { - if x != nil { - return x.Color +func (m *User) GetColor() string { + if m != nil { + return m.Color } return "" } type URLData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Community, Channel, or User - Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` - Shard *Shard `protobuf:"bytes,2,opt,name=shard,proto3" json:"shard,omitempty"` + Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` + Shard *Shard `protobuf:"bytes,2,opt,name=shard,proto3" json:"shard,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *URLData) Reset() { - *x = URLData{} - if protoimpl.UnsafeEnabled { - mi := &file_url_data_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *URLData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*URLData) ProtoMessage() {} - -func (x *URLData) ProtoReflect() protoreflect.Message { - mi := &file_url_data_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use URLData.ProtoReflect.Descriptor instead. +func (m *URLData) Reset() { *m = URLData{} } +func (m *URLData) String() string { return proto.CompactTextString(m) } +func (*URLData) ProtoMessage() {} func (*URLData) Descriptor() ([]byte, []int) { - return file_url_data_proto_rawDescGZIP(), []int{3} + return fileDescriptor_5f1e15b5f0115710, []int{3} } -func (x *URLData) GetContent() []byte { - if x != nil { - return x.Content +func (m *URLData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_URLData.Unmarshal(m, b) +} +func (m *URLData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_URLData.Marshal(b, m, deterministic) +} +func (m *URLData) XXX_Merge(src proto.Message) { + xxx_messageInfo_URLData.Merge(m, src) +} +func (m *URLData) XXX_Size() int { + return xxx_messageInfo_URLData.Size(m) +} +func (m *URLData) XXX_DiscardUnknown() { + xxx_messageInfo_URLData.DiscardUnknown(m) +} + +var xxx_messageInfo_URLData proto.InternalMessageInfo + +func (m *URLData) GetContent() []byte { + if m != nil { + return m.Content } return nil } -func (x *URLData) GetShard() *Shard { - if x != nil { - return x.Shard +func (m *URLData) GetShard() *Shard { + if m != nil { + return m.Shard } return nil } -var File_url_data_proto protoreflect.FileDescriptor - -var file_url_data_proto_rawDesc = []byte{ - 0x0a, 0x0e, 0x75, 0x72, 0x6c, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x0b, 0x73, 0x68, 0x61, 0x72, - 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xac, 0x01, 0x0a, 0x09, 0x43, 0x6f, 0x6d, 0x6d, - 0x75, 0x6e, 0x69, 0x74, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, - 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x0c, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, - 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x67, 0x5f, 0x69, 0x6e, 0x64, - 0x69, 0x63, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0a, 0x74, 0x61, 0x67, 0x49, - 0x6e, 0x64, 0x69, 0x63, 0x65, 0x73, 0x22, 0xc1, 0x01, 0x0a, 0x07, 0x43, 0x68, 0x61, 0x6e, 0x6e, - 0x65, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, - 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x6f, 0x6a, 0x69, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x12, 0x14, 0x0a, - 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, - 0x6c, 0x6f, 0x72, 0x12, 0x31, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x52, 0x09, 0x63, 0x6f, 0x6d, - 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x22, 0x61, 0x0a, 0x04, 0x55, 0x73, - 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, - 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x22, 0x4a, 0x0a, - 0x07, 0x55, 0x52, 0x4c, 0x44, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, - 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, - 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x68, 0x61, - 0x72, 0x64, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterType((*Community)(nil), "protobuf.Community") + proto.RegisterType((*Channel)(nil), "protobuf.Channel") + proto.RegisterType((*User)(nil), "protobuf.User") + proto.RegisterType((*URLData)(nil), "protobuf.URLData") } -var ( - file_url_data_proto_rawDescOnce sync.Once - file_url_data_proto_rawDescData = file_url_data_proto_rawDesc -) - -func file_url_data_proto_rawDescGZIP() []byte { - file_url_data_proto_rawDescOnce.Do(func() { - file_url_data_proto_rawDescData = protoimpl.X.CompressGZIP(file_url_data_proto_rawDescData) - }) - return file_url_data_proto_rawDescData +func init() { + proto.RegisterFile("url_data.proto", fileDescriptor_5f1e15b5f0115710) } -var file_url_data_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_url_data_proto_goTypes = []interface{}{ - (*Community)(nil), // 0: protobuf.Community - (*Channel)(nil), // 1: protobuf.Channel - (*User)(nil), // 2: protobuf.User - (*URLData)(nil), // 3: protobuf.URLData - (*Shard)(nil), // 4: protobuf.Shard -} -var file_url_data_proto_depIdxs = []int32{ - 0, // 0: protobuf.Channel.community:type_name -> protobuf.Community - 4, // 1: protobuf.URLData.shard:type_name -> protobuf.Shard - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_url_data_proto_init() } -func file_url_data_proto_init() { - if File_url_data_proto != nil { - return - } - file_shard_proto_init() - if !protoimpl.UnsafeEnabled { - file_url_data_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Community); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_url_data_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Channel); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_url_data_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*User); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_url_data_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*URLData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_url_data_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_url_data_proto_goTypes, - DependencyIndexes: file_url_data_proto_depIdxs, - MessageInfos: file_url_data_proto_msgTypes, - }.Build() - File_url_data_proto = out.File - file_url_data_proto_rawDesc = nil - file_url_data_proto_goTypes = nil - file_url_data_proto_depIdxs = nil +var fileDescriptor_5f1e15b5f0115710 = []byte{ + // 321 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xb1, 0x4e, 0xc3, 0x30, + 0x10, 0x40, 0x15, 0xda, 0xb4, 0xe4, 0xdc, 0x80, 0x64, 0x3a, 0x58, 0x2c, 0x84, 0x20, 0xa4, 0x4c, + 0x41, 0x94, 0x91, 0x8d, 0xb2, 0x80, 0x10, 0x83, 0x51, 0x17, 0x96, 0xc8, 0x4d, 0x4c, 0x6b, 0x14, + 0xdb, 0x95, 0xe3, 0x0c, 0xfd, 0x27, 0x7e, 0x82, 0x3f, 0x43, 0xb5, 0x1b, 0xc2, 0xc2, 0xd6, 0xc9, + 0x77, 0xef, 0x4e, 0xe7, 0xe7, 0x93, 0xe1, 0xa4, 0x35, 0x75, 0x51, 0x31, 0xcb, 0xf2, 0x8d, 0xd1, + 0x56, 0xe3, 0x63, 0x77, 0x2c, 0xdb, 0x8f, 0x73, 0xd4, 0xac, 0x99, 0xa9, 0x3c, 0x4e, 0xbf, 0x02, + 0x88, 0xe6, 0x5a, 0xca, 0x56, 0x09, 0xbb, 0xc5, 0x97, 0x30, 0xa9, 0x44, 0xb3, 0xa9, 0xd9, 0xb6, + 0x50, 0x4c, 0x72, 0x12, 0x24, 0x41, 0x16, 0x51, 0xb4, 0x67, 0xaf, 0x4c, 0x72, 0x9c, 0x00, 0xaa, + 0x78, 0x53, 0x1a, 0xb1, 0xb1, 0x42, 0x2b, 0x72, 0xb4, 0xef, 0xe8, 0x11, 0xbe, 0x82, 0x58, 0x72, + 0xb9, 0xe4, 0xa6, 0x29, 0x4a, 0xdd, 0x2a, 0x4b, 0x06, 0x49, 0x90, 0xc5, 0x74, 0xb2, 0x87, 0xf3, + 0x1d, 0xc3, 0x53, 0x08, 0x4b, 0x5d, 0x6b, 0x43, 0x86, 0x6e, 0x80, 0x4f, 0xf0, 0x05, 0x20, 0xcb, + 0x56, 0x85, 0x50, 0x95, 0x28, 0x79, 0x43, 0xc2, 0x64, 0x90, 0xc5, 0x14, 0x2c, 0x5b, 0x3d, 0x79, + 0x92, 0x7e, 0x07, 0x30, 0x9e, 0xaf, 0x99, 0x52, 0xbc, 0x3e, 0x8c, 0xec, 0x14, 0x42, 0x2e, 0xf5, + 0xa7, 0x70, 0x92, 0x11, 0xf5, 0xc9, 0x3f, 0x76, 0xb7, 0x10, 0x95, 0xdd, 0xaa, 0x48, 0x98, 0x04, + 0x19, 0x9a, 0x9d, 0xe5, 0xdd, 0x5a, 0xf3, 0xdf, 0x2d, 0xd2, 0xbe, 0x0b, 0x63, 0x18, 0xb6, 0xad, + 0xa8, 0xc8, 0xc8, 0xcd, 0x71, 0x71, 0xca, 0x60, 0xb8, 0x68, 0xb8, 0x39, 0x98, 0xbf, 0x37, 0x1d, + 0xfc, 0x31, 0x4d, 0x9f, 0x61, 0xbc, 0xa0, 0x2f, 0x8f, 0xcc, 0x32, 0x4c, 0x60, 0x5c, 0x6a, 0x65, + 0xb9, 0xb2, 0xee, 0x82, 0x09, 0xed, 0x52, 0x7c, 0x0d, 0xa1, 0xfb, 0x09, 0x6e, 0x2c, 0x9a, 0x9d, + 0xf6, 0x4f, 0x79, 0xdb, 0x61, 0xea, 0xab, 0x0f, 0xf1, 0x3b, 0xca, 0x6f, 0xee, 0xbb, 0xda, 0x72, + 0xe4, 0xa2, 0xbb, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x71, 0x2e, 0xf3, 0xde, 0x60, 0x02, 0x00, + 0x00, } diff --git a/protocol/requests/create_community_token_permission_request.go b/protocol/requests/create_community_token_permission_request.go index 10389feb4..ca5069810 100644 --- a/protocol/requests/create_community_token_permission_request.go +++ b/protocol/requests/create_community_token_permission_request.go @@ -2,7 +2,8 @@ package requests import ( "errors" - "strconv" + "math" + "math/big" "github.com/status-im/status-go/eth-node/types" "github.com/status-im/status-go/protocol/protobuf" @@ -43,8 +44,9 @@ func (p *CreateCommunityTokenPermission) Validate() error { return ErrCreateCommunityTokenPermissionInvalidTokenCriteria } - floatAmount, _ := strconv.ParseFloat(c.Amount, 32) - if len(c.ContractAddresses) > 0 && floatAmount == 0 { + var amountBig = new(big.Int) + amountBig.SetString(c.AmountInWei, 10) + if len(c.ContractAddresses) > 0 && amountBig.Cmp(big.NewInt(0)) == 0 { return ErrCreateCommunityTokenPermissionInvalidTokenCriteria } } @@ -52,6 +54,32 @@ func (p *CreateCommunityTokenPermission) Validate() error { return nil } +func (p *CreateCommunityTokenPermission) FillDeprecatedAmount() { + + computeErc20AmountFunc := func(amountInWeis string, decimals uint64) string { + bigfloat := new(big.Float) + bigfloat.SetString(amountInWeis) + multiplier := big.NewFloat(math.Pow(10, float64(decimals))) + bigfloat.Quo(bigfloat, multiplier) + return bigfloat.String() + } + + for _, criteria := range p.TokenCriteria { + if criteria.AmountInWei == "" { + continue + } + // fill Amount to keep backward compatibility + // Amount format (deprecated): "0.123" + // AmountInWei format: "123000..000" + if criteria.Type == protobuf.CommunityTokenType_ERC20 { + criteria.Amount = computeErc20AmountFunc(criteria.AmountInWei, criteria.Decimals) + } else { + criteria.Amount = criteria.AmountInWei + } + + } +} + func (p *CreateCommunityTokenPermission) ToCommunityTokenPermission() protobuf.CommunityTokenPermission { return protobuf.CommunityTokenPermission{ Type: p.Type,