feat: implement token management settings for collectibles
This commit is contained in:
parent
d0ca4447c6
commit
0d2c3cef7c
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,12 @@
|
|||
CREATE TABLE "collectible_preferences" (
|
||||
"type" INTEGER NOT NULL,
|
||||
"key" TEXT NOT NULL,
|
||||
"position" INTEGER NOT NULL DEFAULT -1,
|
||||
"visible" BOOLEAN NOT NULL DEFAULT TRUE,
|
||||
"testnet" BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
PRIMARY KEY("type", "key", "testnet")
|
||||
);
|
||||
|
||||
ALTER TABLE settings ADD COLUMN wallet_collectible_preferences_change_clock INTEGER NOT NULL DEFAULT 0;
|
||||
ALTER TABLE settings ADD COLUMN wallet_collectible_preferences_group_by_collection BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
ALTER TABLE settings ADD COLUMN wallet_collectible_preferences_group_by_community BOOLEAN NOT NULL DEFAULT FALSE;
|
|
@ -435,6 +435,16 @@ var (
|
|||
protobufType: protobuf.SyncSetting_DISPLAY_ASSETS_BELOW_BALANCE_THRESHOLD,
|
||||
},
|
||||
}
|
||||
CollectibleGroupByCollection = SettingField{
|
||||
reactFieldName: "collectible-group-by-collection?",
|
||||
dBColumnName: "wallet_collectible_preferences_group_by_collection",
|
||||
valueHandler: BoolHandler,
|
||||
}
|
||||
CollectibleGroupByCommunity = SettingField{
|
||||
reactFieldName: "collectible-group-by-community?",
|
||||
dBColumnName: "wallet_collectible_preferences_group_by_community",
|
||||
valueHandler: BoolHandler,
|
||||
}
|
||||
UseMailservers = SettingField{
|
||||
reactFieldName: "use-mailservers?",
|
||||
dBColumnName: "use_mailservers",
|
||||
|
@ -568,6 +578,8 @@ var (
|
|||
ShowCommunityAssetWhenSendingTokens,
|
||||
DisplayAssetsBelowBalance,
|
||||
DisplayAssetsBelowBalanceThreshold,
|
||||
CollectibleGroupByCollection,
|
||||
CollectibleGroupByCommunity,
|
||||
URLUnfurlingMode,
|
||||
}
|
||||
)
|
||||
|
|
|
@ -146,10 +146,12 @@ INSERT INTO settings (
|
|||
wallet_token_preferences_group_by_community,
|
||||
wallet_show_community_asset_when_sending_tokens,
|
||||
wallet_display_assets_below_balance,
|
||||
wallet_display_assets_below_balance_threshold
|
||||
wallet_display_assets_below_balance_threshold,
|
||||
wallet_collectible_preferences_group_by_collection,
|
||||
wallet_collectible_preferences_group_by_community
|
||||
) VALUES (
|
||||
?,?,?,?,?,?,?,?,?,?,?,?,?,
|
||||
?,?,?,?,?,?,?,?,?,'id',?,?,?,?,?,?,?,?,?,?)`,
|
||||
?,?,?,?,?,?,?,?,?,'id',?,?,?,?,?,?,?,?,?,?,?,?)`,
|
||||
s.Address,
|
||||
s.Currency,
|
||||
s.CurrentNetwork,
|
||||
|
@ -182,6 +184,8 @@ INSERT INTO settings (
|
|||
s.ShowCommunityAssetWhenSendingTokens,
|
||||
s.DisplayAssetsBelowBalance,
|
||||
s.DisplayAssetsBelowBalanceThreshold,
|
||||
s.CollectibleGroupByCollection,
|
||||
s.CollectibleGroupByCommunity,
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -378,7 +382,7 @@ func (db *Database) GetSettings() (Settings, error) {
|
|||
gif_favorites, opensea_enabled, last_backup, backup_enabled, telemetry_server_url, auto_message_enabled, gif_api_key,
|
||||
test_networks_enabled, mutual_contact_enabled, profile_migration_needed, is_sepolia_enabled, wallet_token_preferences_group_by_community, url_unfurling_mode,
|
||||
omit_transfers_history_scan, mnemonic_was_not_shown, wallet_show_community_asset_when_sending_tokens, wallet_display_assets_below_balance,
|
||||
wallet_display_assets_below_balance_threshold
|
||||
wallet_display_assets_below_balance_threshold, wallet_collectible_preferences_group_by_collection, wallet_collectible_preferences_group_by_community
|
||||
FROM
|
||||
settings
|
||||
WHERE
|
||||
|
@ -460,6 +464,8 @@ func (db *Database) GetSettings() (Settings, error) {
|
|||
&s.ShowCommunityAssetWhenSendingTokens,
|
||||
&s.DisplayAssetsBelowBalance,
|
||||
&s.DisplayAssetsBelowBalanceThreshold,
|
||||
&s.CollectibleGroupByCollection,
|
||||
&s.CollectibleGroupByCommunity,
|
||||
)
|
||||
|
||||
return s, err
|
||||
|
@ -760,6 +766,30 @@ func (db *Database) SetTokenGroupByCommunity(value bool) error {
|
|||
return db.SaveSettingField(TokenGroupByCommunity, value)
|
||||
}
|
||||
|
||||
func (db *Database) GetCollectibleGroupByCollection() (result bool, err error) {
|
||||
err = db.makeSelectRow(CollectibleGroupByCollection).Scan(&result)
|
||||
if err == sql.ErrNoRows {
|
||||
return result, nil
|
||||
}
|
||||
return result, err
|
||||
}
|
||||
|
||||
func (db *Database) SetCollectibleGroupByCollection(value bool) error {
|
||||
return db.SaveSettingField(CollectibleGroupByCollection, value)
|
||||
}
|
||||
|
||||
func (db *Database) GetCollectibleGroupByCommunity() (result bool, err error) {
|
||||
err = db.makeSelectRow(CollectibleGroupByCommunity).Scan(&result)
|
||||
if err == sql.ErrNoRows {
|
||||
return result, nil
|
||||
}
|
||||
return result, err
|
||||
}
|
||||
|
||||
func (db *Database) SetCollectibleGroupByCommunity(value bool) error {
|
||||
return db.SaveSettingField(CollectibleGroupByCommunity, value)
|
||||
}
|
||||
|
||||
func (db *Database) GetTelemetryServerURL() (string, error) {
|
||||
return db.makeSelectString(TelemetryServerURL)
|
||||
}
|
||||
|
|
|
@ -38,6 +38,8 @@ type DatabaseSettingsManager interface {
|
|||
GetTestNetworksEnabled() (result bool, err error)
|
||||
GetIsSepoliaEnabled() (result bool, err error)
|
||||
GetTokenGroupByCommunity() (result bool, err error)
|
||||
GetCollectibleGroupByCommunity() (result bool, err error)
|
||||
GetCollectibleGroupByCollection() (result bool, err error)
|
||||
GetTelemetryServerURL() (string, error)
|
||||
|
||||
SetSettingsNotifier(n Notifier)
|
||||
|
|
|
@ -236,6 +236,36 @@ func (mr *MockDatabaseSettingsManagerMockRecorder) GetDisplayAssetsBelowBalanceT
|
|||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDisplayAssetsBelowBalanceThreshold", reflect.TypeOf((*MockDatabaseSettingsManager)(nil).GetDisplayAssetsBelowBalanceThreshold))
|
||||
}
|
||||
|
||||
// GetCollectibleGroupByCommunity mocks base method.
|
||||
func (m *MockDatabaseSettingsManager) GetCollectibleGroupByCommunity() (bool, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetCollectibleGroupByCommunity")
|
||||
ret0, _ := ret[0].(bool)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// GetCollectibleGroupByCommunity indicates an expected call of GetCollectibleGroupByCommunity.
|
||||
func (mr *MockDatabaseSettingsManagerMockRecorder) GetCollectibleGroupByCommunity() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCollectibleGroupByCommunity", reflect.TypeOf((*MockDatabaseSettingsManager)(nil).GetCollectibleGroupByCommunity))
|
||||
}
|
||||
|
||||
// GetCollectibleGroupByCollection mocks base method.
|
||||
func (m *MockDatabaseSettingsManager) GetCollectibleGroupByCollection() (bool, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetCollectibleGroupByCollection")
|
||||
ret0, _ := ret[0].(bool)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// GetCollectibleGroupByCollection indicates an expected call of GetCollectibleGroupByCollection.
|
||||
func (mr *MockDatabaseSettingsManagerMockRecorder) GetCollectibleGroupByCollection() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCollectibleGroupByCollection", reflect.TypeOf((*MockDatabaseSettingsManager)(nil).GetCollectibleGroupByCollection))
|
||||
}
|
||||
|
||||
// URLUnfurlingMode mocks base method.
|
||||
func (m *MockDatabaseSettingsManager) URLUnfurlingMode() (int64, error) {
|
||||
m.ctrl.T.Helper()
|
||||
|
|
|
@ -203,6 +203,8 @@ type Settings struct {
|
|||
ShowCommunityAssetWhenSendingTokens bool `json:"show-community-asset-when-sending-tokens?,omitempty"`
|
||||
DisplayAssetsBelowBalance bool `json:"display-assets-below-balance?,omitempty"`
|
||||
DisplayAssetsBelowBalanceThreshold int64 `json:"display-assets-below-balance-threshold,omitempty"`
|
||||
CollectibleGroupByCollection bool `json:"collectible-group-by-collection?,omitempty"`
|
||||
CollectibleGroupByCommunity bool `json:"collectible-group-by-community?,omitempty"`
|
||||
URLUnfurlingMode URLUnfurlingModeType `json:"url-unfurling-mode,omitempty"`
|
||||
}
|
||||
|
||||
|
|
|
@ -13,6 +13,22 @@ type TokenPreferences struct {
|
|||
CommunityID string `json:"communityId"`
|
||||
}
|
||||
|
||||
type CollectiblePreferencesType int
|
||||
|
||||
const (
|
||||
CollectiblePreferencesTypeNonCommunityCollectible CollectiblePreferencesType = iota + 1
|
||||
CollectiblePreferencesTypeCommunityCollectible
|
||||
CollectiblePreferencesTypeCollection
|
||||
CollectiblePreferencesTypeCommunity
|
||||
)
|
||||
|
||||
type CollectiblePreferences struct {
|
||||
Type CollectiblePreferencesType `json:"type"`
|
||||
Key string `json:"key"`
|
||||
Position int `json:"position"`
|
||||
Visible bool `json:"visible"`
|
||||
}
|
||||
|
||||
type WalletSettings struct {
|
||||
db *sql.DB
|
||||
}
|
||||
|
@ -124,3 +140,90 @@ func (ws *WalletSettings) GetTokenPreferences(testNetworksEnabled bool) ([]Token
|
|||
|
||||
return result, nil
|
||||
}
|
||||
|
||||
func (ws *WalletSettings) setClockOfLastCollectiblePreferencesChange(tx *sql.Tx, clock uint64) error {
|
||||
if tx == nil {
|
||||
return errors.New("database transaction is nil")
|
||||
}
|
||||
_, err := tx.Exec("UPDATE settings SET wallet_collectible_preferences_change_clock = ? WHERE synthetic_id = 'id'", clock)
|
||||
return err
|
||||
}
|
||||
|
||||
func (ws *WalletSettings) GetClockOfLastCollectiblePreferencesChange() (result uint64, err error) {
|
||||
query := "SELECT wallet_collectible_preferences_change_clock FROM settings WHERE synthetic_id = 'id'"
|
||||
err = ws.db.QueryRow(query).Scan(&result)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
return result, err
|
||||
}
|
||||
|
||||
func (ws *WalletSettings) UpdateCollectiblePreferences(preferences []CollectiblePreferences, groupByCommunity bool, groupByCollection bool, testNetworksEnabled bool, clock uint64) error {
|
||||
if len(preferences) == 0 {
|
||||
return errors.New("collectibles: trying to create custom order with empty list")
|
||||
}
|
||||
|
||||
tx, err := ws.db.Begin()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
var mainError error = nil
|
||||
|
||||
defer func() {
|
||||
if mainError == nil {
|
||||
err = tx.Commit()
|
||||
return
|
||||
}
|
||||
_ = tx.Rollback()
|
||||
}()
|
||||
|
||||
_, mainError = tx.Exec("DELETE FROM collectible_preferences WHERE testnet = ?", testNetworksEnabled)
|
||||
if mainError != nil {
|
||||
return mainError
|
||||
}
|
||||
|
||||
for _, p := range preferences {
|
||||
if p.Position < 0 {
|
||||
mainError = errors.New("collectibles: trying to create custom order with negative position")
|
||||
return mainError
|
||||
}
|
||||
_, err := tx.Exec("INSERT INTO collectible_preferences (type, key, position, visible, testnet) VALUES (?, ?, ?, ?, ?)", p.Type, p.Key, p.Position, p.Visible, testNetworksEnabled)
|
||||
if err != nil {
|
||||
mainError = err
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
mainError = ws.setClockOfLastCollectiblePreferencesChange(tx, clock)
|
||||
if mainError != nil {
|
||||
return mainError
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (ws *WalletSettings) GetCollectiblePreferences(testNetworksEnabled bool) ([]CollectiblePreferences, error) {
|
||||
rows, err := ws.db.Query("SELECT type, key, position, visible FROM collectible_preferences WHERE testnet = ?", testNetworksEnabled)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer rows.Close()
|
||||
|
||||
var result []CollectiblePreferences
|
||||
|
||||
for rows.Next() {
|
||||
p := CollectiblePreferences{}
|
||||
err := rows.Scan(&p.Type, &p.Key, &p.Position, &p.Visible)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
result = append(result, p)
|
||||
}
|
||||
|
||||
if err := rows.Err(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
|
|
@ -306,3 +306,162 @@ func TestUpdateTokenPreferencesSettings(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
require.True(t, clock > 0)
|
||||
}
|
||||
|
||||
func TestSetClockOfLastCollectiblePreferencesChange(t *testing.T) {
|
||||
walletSettings, stop := setupTestDB(t)
|
||||
defer stop()
|
||||
|
||||
clock, err := walletSettings.GetClockOfLastCollectiblePreferencesChange()
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, uint64(0), clock)
|
||||
|
||||
err = walletSettings.setClockOfLastCollectiblePreferencesChange(nil, 123)
|
||||
require.Error(t, err)
|
||||
|
||||
tx, err := walletSettings.db.Begin()
|
||||
require.NoError(t, err)
|
||||
err = walletSettings.setClockOfLastCollectiblePreferencesChange(tx, 123)
|
||||
require.NoError(t, err)
|
||||
err = tx.Commit()
|
||||
require.NoError(t, err)
|
||||
|
||||
clock, err = walletSettings.GetClockOfLastCollectiblePreferencesChange()
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, uint64(123), clock)
|
||||
}
|
||||
|
||||
func TestGetCollectiblePreferencesEmpty(t *testing.T) {
|
||||
walletSettings, stop := setupTestDB(t)
|
||||
defer stop()
|
||||
|
||||
preferences, err := walletSettings.GetCollectiblePreferences(true)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, 0, len(preferences))
|
||||
preferences, err = walletSettings.GetCollectiblePreferences(false)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, 0, len(preferences))
|
||||
}
|
||||
|
||||
func TestUpdateCollectiblePreferencesEmpty(t *testing.T) {
|
||||
walletSettings, stop := setupTestDB(t)
|
||||
defer stop()
|
||||
|
||||
err := walletSettings.UpdateCollectiblePreferences([]CollectiblePreferences{}, false, false, false, 0)
|
||||
require.Error(t, err)
|
||||
err = walletSettings.UpdateCollectiblePreferences([]CollectiblePreferences{}, false, false, true, 0)
|
||||
require.Error(t, err)
|
||||
}
|
||||
|
||||
func TestUpdateCollectiblePreferencesTestnet(t *testing.T) {
|
||||
walletSettings, stop := setupTestDB(t)
|
||||
defer stop()
|
||||
|
||||
err := walletSettings.UpdateCollectiblePreferences([]CollectiblePreferences{
|
||||
{CollectiblePreferencesTypeNonCommunityCollectible, "First", 0, false},
|
||||
}, false, false, true, 0)
|
||||
require.NoError(t, err)
|
||||
|
||||
// Mainnet is not affected by testnet preferences
|
||||
preferences, err := walletSettings.GetCollectiblePreferences(false)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, 0, len(preferences))
|
||||
|
||||
preferences, err = walletSettings.GetCollectiblePreferences(true)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, 1, len(preferences))
|
||||
require.Equal(t, CollectiblePreferencesTypeNonCommunityCollectible, preferences[0].Type)
|
||||
require.Equal(t, "First", preferences[0].Key)
|
||||
require.Equal(t, 0, preferences[0].Position)
|
||||
require.Equal(t, false, preferences[0].Visible)
|
||||
|
||||
// Inserting into testnet doesn't affect mainnet
|
||||
err = walletSettings.UpdateCollectiblePreferences([]CollectiblePreferences{
|
||||
{CollectiblePreferencesTypeNonCommunityCollectible, "First", 0, true},
|
||||
{CollectiblePreferencesTypeNonCommunityCollectible, "Second", 1, true},
|
||||
}, false, false, false, 0)
|
||||
require.NoError(t, err)
|
||||
err = walletSettings.UpdateCollectiblePreferences([]CollectiblePreferences{
|
||||
{CollectiblePreferencesTypeCommunityCollectible, "First", 1, true},
|
||||
{CollectiblePreferencesTypeCommunityCollectible, "Second", 2, true},
|
||||
}, false, false, true, 0)
|
||||
require.NoError(t, err)
|
||||
|
||||
// Having same symbols on mainnet and testnet is allowed
|
||||
preferences, err = walletSettings.GetCollectiblePreferences(true)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, 2, len(preferences))
|
||||
require.Equal(t, CollectiblePreferencesTypeCommunityCollectible, preferences[0].Type)
|
||||
require.Equal(t, "First", preferences[0].Key)
|
||||
require.Equal(t, 1, preferences[0].Position)
|
||||
require.Equal(t, true, preferences[0].Visible)
|
||||
require.Equal(t, CollectiblePreferencesTypeCommunityCollectible, preferences[1].Type)
|
||||
require.Equal(t, "Second", preferences[1].Key)
|
||||
require.Equal(t, 2, preferences[1].Position)
|
||||
require.Equal(t, true, preferences[1].Visible)
|
||||
|
||||
preferences, err = walletSettings.GetCollectiblePreferences(false)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, 2, len(preferences))
|
||||
require.Equal(t, CollectiblePreferencesTypeNonCommunityCollectible, preferences[0].Type)
|
||||
require.Equal(t, "First", preferences[0].Key)
|
||||
require.Equal(t, 0, preferences[0].Position)
|
||||
require.Equal(t, true, preferences[0].Visible)
|
||||
require.Equal(t, CollectiblePreferencesTypeNonCommunityCollectible, preferences[1].Type)
|
||||
require.Equal(t, "Second", preferences[1].Key)
|
||||
require.Equal(t, 1, preferences[1].Position)
|
||||
require.Equal(t, true, preferences[1].Visible)
|
||||
}
|
||||
|
||||
func TestUpdateCollectiblePreferencesRollback(t *testing.T) {
|
||||
db, stop := setupTestDB(t)
|
||||
defer stop()
|
||||
|
||||
err := db.UpdateCollectiblePreferences([]CollectiblePreferences{
|
||||
{CollectiblePreferencesTypeNonCommunityCollectible, "First", 0, false},
|
||||
}, false, false, true, 0)
|
||||
require.NoError(t, err)
|
||||
|
||||
// Duplicate is not allowed
|
||||
err = db.UpdateCollectiblePreferences([]CollectiblePreferences{
|
||||
{CollectiblePreferencesTypeNonCommunityCollectible, "Second", -1, false},
|
||||
{CollectiblePreferencesTypeNonCommunityCollectible, "Third", -1, false},
|
||||
}, false, false, true, 0)
|
||||
require.Error(t, err)
|
||||
|
||||
// Rolled back to previous state
|
||||
preferences, err := db.GetCollectiblePreferences(true)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, 1, len(preferences))
|
||||
require.Equal(t, CollectiblePreferencesTypeNonCommunityCollectible, preferences[0].Type)
|
||||
require.Equal(t, "First", preferences[0].Key)
|
||||
require.Equal(t, 0, preferences[0].Position)
|
||||
require.Equal(t, false, preferences[0].Visible)
|
||||
}
|
||||
|
||||
func TestUpdateCollectiblePreferencesSettings(t *testing.T) {
|
||||
walletSettings, stop := setupTestDB(t)
|
||||
defer stop()
|
||||
|
||||
preferences := []CollectiblePreferences{
|
||||
{CollectiblePreferencesTypeNonCommunityCollectible, "First", 0, false},
|
||||
{CollectiblePreferencesTypeCommunityCollectible, "Second", 1, true},
|
||||
{CollectiblePreferencesTypeCollection, "Third", 2, false},
|
||||
{CollectiblePreferencesTypeCommunity, "Fourth", 3, true},
|
||||
}
|
||||
|
||||
err := walletSettings.UpdateCollectiblePreferences(preferences, true, true, true, 123)
|
||||
require.NoError(t, err)
|
||||
|
||||
// Verify that the preferences are updated correctly
|
||||
prefs, err := walletSettings.GetCollectiblePreferences(true)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, len(preferences), len(prefs))
|
||||
for i := range preferences {
|
||||
require.Equal(t, preferences[i], prefs[i])
|
||||
}
|
||||
|
||||
// Verify that the clock is updated
|
||||
clock, err := walletSettings.GetClockOfLastCollectiblePreferencesChange()
|
||||
require.NoError(t, err)
|
||||
require.True(t, clock > 0)
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -43,17 +43,18 @@ const (
|
|||
)
|
||||
|
||||
var (
|
||||
ErrMessageNotAllowed = errors.New("message from a non-contact")
|
||||
ErrMessageForWrongChatType = errors.New("message for the wrong chat type")
|
||||
ErrNotWatchOnlyAccount = errors.New("an account is not a watch only account")
|
||||
ErrWalletAccountNotSupportedForMobileApp = errors.New("handling account is not supported for mobile app")
|
||||
ErrTryingToApplyOldWalletAccountsOrder = errors.New("trying to apply old wallet accounts order")
|
||||
ErrTryingToStoreOldWalletAccount = errors.New("trying to store an old wallet account")
|
||||
ErrTryingToStoreOldKeypair = errors.New("trying to store an old keypair")
|
||||
ErrSomeFieldsMissingForWalletAccount = errors.New("some fields are missing for wallet account")
|
||||
ErrUnknownKeypairForWalletAccount = errors.New("keypair is not known for the wallet account")
|
||||
ErrInvalidCommunityID = errors.New("invalid community id")
|
||||
ErrTryingToApplyOldTokenPreferences = errors.New("trying to apply old token preferences")
|
||||
ErrMessageNotAllowed = errors.New("message from a non-contact")
|
||||
ErrMessageForWrongChatType = errors.New("message for the wrong chat type")
|
||||
ErrNotWatchOnlyAccount = errors.New("an account is not a watch only account")
|
||||
ErrWalletAccountNotSupportedForMobileApp = errors.New("handling account is not supported for mobile app")
|
||||
ErrTryingToApplyOldWalletAccountsOrder = errors.New("trying to apply old wallet accounts order")
|
||||
ErrTryingToStoreOldWalletAccount = errors.New("trying to store an old wallet account")
|
||||
ErrTryingToStoreOldKeypair = errors.New("trying to store an old keypair")
|
||||
ErrSomeFieldsMissingForWalletAccount = errors.New("some fields are missing for wallet account")
|
||||
ErrUnknownKeypairForWalletAccount = errors.New("keypair is not known for the wallet account")
|
||||
ErrInvalidCommunityID = errors.New("invalid community id")
|
||||
ErrTryingToApplyOldTokenPreferences = errors.New("trying to apply old token preferences")
|
||||
ErrTryingToApplyOldCollectiblePreferences = errors.New("trying to apply old collectible preferences")
|
||||
)
|
||||
|
||||
// HandleMembershipUpdate updates a Chat instance according to the membership updates.
|
||||
|
@ -3299,6 +3300,50 @@ func (m *Messenger) handleSyncTokenPreferences(message *protobuf.SyncTokenPrefer
|
|||
return tokenPreferences, nil
|
||||
}
|
||||
|
||||
func (m *Messenger) handleSyncCollectiblePreferences(message *protobuf.SyncCollectiblePreferences) ([]walletsettings.CollectiblePreferences, error) {
|
||||
if len(message.Preferences) == 0 {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
dbLastUpdate, err := m.settings.GetClockOfLastCollectiblePreferencesChange()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
groupByCommunity, err := m.settings.GetCollectibleGroupByCommunity()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
groupByCollection, err := m.settings.GetCollectibleGroupByCollection()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Since adding new collectible preferences updates `ClockOfLastCollectiblePreferencesChange` we should handle collectible
|
||||
// preferences changes even they are with the same clock, that ensures the correct order in case of syncing devices.
|
||||
if message.Clock < dbLastUpdate {
|
||||
return nil, ErrTryingToApplyOldCollectiblePreferences
|
||||
}
|
||||
|
||||
var collectiblePreferences []walletsettings.CollectiblePreferences
|
||||
for _, pref := range message.Preferences {
|
||||
collectiblePref := walletsettings.CollectiblePreferences{
|
||||
Type: walletsettings.CollectiblePreferencesType(pref.Type),
|
||||
Key: pref.Key,
|
||||
Position: int(pref.Position),
|
||||
Visible: pref.Visible,
|
||||
}
|
||||
collectiblePreferences = append(collectiblePreferences, collectiblePref)
|
||||
}
|
||||
|
||||
err = m.settings.UpdateCollectiblePreferences(collectiblePreferences, groupByCommunity, groupByCollection, message.Testnet, message.Clock)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return collectiblePreferences, nil
|
||||
}
|
||||
|
||||
func (m *Messenger) handleSyncAccountsPositions(message *protobuf.SyncAccountsPositions) ([]*accounts.Account, error) {
|
||||
if len(message.Accounts) == 0 {
|
||||
return nil, nil
|
||||
|
@ -3547,6 +3592,21 @@ func (m *Messenger) HandleSyncTokenPreferences(state *ReceivedMessageState, mess
|
|||
return nil
|
||||
}
|
||||
|
||||
func (m *Messenger) HandleSyncCollectiblePreferences(state *ReceivedMessageState, message *protobuf.SyncCollectiblePreferences, statusMessage *v1protocol.StatusMessage) error {
|
||||
collectiblePreferences, err := m.handleSyncCollectiblePreferences(message)
|
||||
if err != nil {
|
||||
if err == ErrTryingToApplyOldCollectiblePreferences {
|
||||
m.logger.Warn("syncing collectible preferences issue", zap.Error(err))
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
state.Response.CollectiblePreferences = append(state.Response.CollectiblePreferences, collectiblePreferences...)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Messenger) HandleSyncAccount(state *ReceivedMessageState, message *protobuf.SyncAccount, statusMessage *v1protocol.StatusMessage) error {
|
||||
acc, err := m.handleSyncWatchOnlyAccount(message, false)
|
||||
if err != nil {
|
||||
|
|
|
@ -238,6 +238,9 @@ func (m *Messenger) dispatchToHandler(messageState *ReceivedMessageState, protoB
|
|||
case protobuf.ApplicationMetadataMessage_COMMUNITY_PUBLIC_SHARD_INFO:
|
||||
return m.handleCommunityPublicShardInfoProtobuf(messageState, protoBytes, msg, filter)
|
||||
|
||||
case protobuf.ApplicationMetadataMessage_SYNC_COLLECTIBLE_PREFERENCES:
|
||||
return m.handleSyncCollectiblePreferencesProtobuf(messageState, protoBytes, msg, filter)
|
||||
|
||||
default:
|
||||
m.logger.Info("protobuf type not found", zap.String("type", string(msg.ApplicationLayer.Type)))
|
||||
return errors.New("protobuf type not found")
|
||||
|
@ -1702,3 +1705,26 @@ func (m *Messenger) handleCommunityPublicShardInfoProtobuf(messageState *Receive
|
|||
}
|
||||
|
||||
|
||||
func (m *Messenger) handleSyncCollectiblePreferencesProtobuf(messageState *ReceivedMessageState, protoBytes []byte, msg *v1protocol.StatusMessage, filter transport.Filter) error {
|
||||
m.logger.Info("handling SyncCollectiblePreferences")
|
||||
|
||||
if !common.IsPubKeyEqual(messageState.CurrentMessageState.PublicKey, &m.identity.PublicKey) {
|
||||
m.logger.Warn("not coming from us, ignoring")
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
|
||||
p := &protobuf.SyncCollectiblePreferences{}
|
||||
err := proto.Unmarshal(protoBytes, p)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
m.outputToCSV(msg.TransportLayer.Message.Timestamp, msg.ApplicationLayer.ID, messageState.CurrentMessageState.Contact.ID, filter.ContentTopic, filter.ChatID, msg.ApplicationLayer.Type, p)
|
||||
|
||||
return m.HandleSyncCollectiblePreferences(messageState, p, msg)
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -58,6 +58,7 @@ type MessengerResponse struct {
|
|||
Keypairs []*accounts.Keypair
|
||||
AccountsPositions []*accounts.Account
|
||||
TokenPreferences []walletsettings.TokenPreferences
|
||||
CollectiblePreferences []walletsettings.CollectiblePreferences
|
||||
DiscordCategories []*discord.Category
|
||||
DiscordChannels []*discord.Channel
|
||||
DiscordOldestMessageTimestamp int
|
||||
|
@ -111,30 +112,31 @@ func (r *MessengerResponse) MarshalJSON() ([]byte, error) {
|
|||
TrustStatus map[string]verification.TrustStatus `json:"trustStatus,omitempty"`
|
||||
// Notifications a list of notifications derived from messenger events
|
||||
// that are useful to notify the user about
|
||||
Notifications []*localnotifications.Notification `json:"notifications"`
|
||||
Communities []*communities.Community `json:"communities,omitempty"`
|
||||
CommunitiesSettings []*communities.CommunitySettings `json:"communitiesSettings,omitempty"`
|
||||
ActivityCenterNotifications []*ActivityCenterNotification `json:"activityCenterNotifications,omitempty"`
|
||||
ActivityCenterState *ActivityCenterState `json:"activityCenterState,omitempty"`
|
||||
CurrentStatus *UserStatus `json:"currentStatus,omitempty"`
|
||||
StatusUpdates []UserStatus `json:"statusUpdates,omitempty"`
|
||||
Settings []*settings.SyncSettingField `json:"settings,omitempty"`
|
||||
IdentityImages []images.IdentityImage `json:"identityImages,omitempty"`
|
||||
CustomizationColor string `json:"customizationColor,omitempty"`
|
||||
WatchOnlyAccounts []*accounts.Account `json:"watchOnlyAccounts,omitempty"`
|
||||
Keypairs []*accounts.Keypair `json:"keypairs,omitempty"`
|
||||
AccountsPositions []*accounts.Account `json:"accountsPositions,omitempty"`
|
||||
TokenPreferences []walletsettings.TokenPreferences `json:"tokenPreferences,omitempty"`
|
||||
DiscordCategories []*discord.Category `json:"discordCategories,omitempty"`
|
||||
DiscordChannels []*discord.Channel `json:"discordChannels,omitempty"`
|
||||
DiscordOldestMessageTimestamp int `json:"discordOldestMessageTimestamp"`
|
||||
DiscordMessages []*protobuf.DiscordMessage `json:"discordMessages,omitempty"`
|
||||
DiscordMessageAttachments []*protobuf.DiscordMessageAttachment `json:"discordMessageAtachments,omitempty"`
|
||||
SavedAddresses []*wallet.SavedAddress `json:"savedAddresses,omitempty"`
|
||||
SocialLinksInfo *identity.SocialLinksInfo `json:"socialLinksInfo,omitempty"`
|
||||
EnsUsernameDetails []*ensservice.UsernameDetail `json:"ensUsernameDetails,omitempty"`
|
||||
UpdatedProfileShowcases []*ProfileShowcase `json:"updatedProfileShowcases,omitempty"`
|
||||
SeenAndUnseenMessages []*SeenUnseenMessages `json:"seenAndUnseenMessages,omitempty"`
|
||||
Notifications []*localnotifications.Notification `json:"notifications"`
|
||||
Communities []*communities.Community `json:"communities,omitempty"`
|
||||
CommunitiesSettings []*communities.CommunitySettings `json:"communitiesSettings,omitempty"`
|
||||
ActivityCenterNotifications []*ActivityCenterNotification `json:"activityCenterNotifications,omitempty"`
|
||||
ActivityCenterState *ActivityCenterState `json:"activityCenterState,omitempty"`
|
||||
CurrentStatus *UserStatus `json:"currentStatus,omitempty"`
|
||||
StatusUpdates []UserStatus `json:"statusUpdates,omitempty"`
|
||||
Settings []*settings.SyncSettingField `json:"settings,omitempty"`
|
||||
IdentityImages []images.IdentityImage `json:"identityImages,omitempty"`
|
||||
CustomizationColor string `json:"customizationColor,omitempty"`
|
||||
WatchOnlyAccounts []*accounts.Account `json:"watchOnlyAccounts,omitempty"`
|
||||
Keypairs []*accounts.Keypair `json:"keypairs,omitempty"`
|
||||
AccountsPositions []*accounts.Account `json:"accountsPositions,omitempty"`
|
||||
TokenPreferences []walletsettings.TokenPreferences `json:"tokenPreferences,omitempty"`
|
||||
CollectiblePreferences []walletsettings.CollectiblePreferences `json:"collectiblePreferences,omitempty"`
|
||||
DiscordCategories []*discord.Category `json:"discordCategories,omitempty"`
|
||||
DiscordChannels []*discord.Channel `json:"discordChannels,omitempty"`
|
||||
DiscordOldestMessageTimestamp int `json:"discordOldestMessageTimestamp"`
|
||||
DiscordMessages []*protobuf.DiscordMessage `json:"discordMessages,omitempty"`
|
||||
DiscordMessageAttachments []*protobuf.DiscordMessageAttachment `json:"discordMessageAtachments,omitempty"`
|
||||
SavedAddresses []*wallet.SavedAddress `json:"savedAddresses,omitempty"`
|
||||
SocialLinksInfo *identity.SocialLinksInfo `json:"socialLinksInfo,omitempty"`
|
||||
EnsUsernameDetails []*ensservice.UsernameDetail `json:"ensUsernameDetails,omitempty"`
|
||||
UpdatedProfileShowcases []*ProfileShowcase `json:"updatedProfileShowcases,omitempty"`
|
||||
SeenAndUnseenMessages []*SeenUnseenMessages `json:"seenAndUnseenMessages,omitempty"`
|
||||
}{
|
||||
Contacts: r.Contacts,
|
||||
Installations: r.Installations,
|
||||
|
@ -151,6 +153,7 @@ func (r *MessengerResponse) MarshalJSON() ([]byte, error) {
|
|||
Keypairs: r.Keypairs,
|
||||
AccountsPositions: r.AccountsPositions,
|
||||
TokenPreferences: r.TokenPreferences,
|
||||
CollectiblePreferences: r.CollectiblePreferences,
|
||||
|
||||
Messages: r.Messages(),
|
||||
VerificationRequests: r.VerificationRequests(),
|
||||
|
@ -294,6 +297,7 @@ func (r *MessengerResponse) IsEmpty() bool {
|
|||
len(r.Keypairs)+
|
||||
len(r.AccountsPositions)+
|
||||
len(r.TokenPreferences)+
|
||||
len(r.CollectiblePreferences)+
|
||||
len(r.notifications)+
|
||||
len(r.statusUpdates)+
|
||||
len(r.activityCenterNotifications)+
|
||||
|
@ -348,6 +352,7 @@ func (r *MessengerResponse) Merge(response *MessengerResponse) error {
|
|||
r.Keypairs = append(r.Keypairs, response.Keypairs...)
|
||||
r.AccountsPositions = append(r.AccountsPositions, response.AccountsPositions...)
|
||||
r.TokenPreferences = append(r.TokenPreferences, response.TokenPreferences...)
|
||||
r.CollectiblePreferences = append(r.CollectiblePreferences, response.CollectiblePreferences...)
|
||||
r.SocialLinksInfo = response.SocialLinksInfo
|
||||
|
||||
return nil
|
||||
|
|
|
@ -231,6 +231,17 @@ func (m *Messenger) HandleSyncRawMessages(rawMessages []*protobuf.RawMessage) er
|
|||
m.logger.Error("failed to HandleSyncTokenPreferences when HandleSyncRawMessages", zap.Error(err))
|
||||
continue
|
||||
}
|
||||
case protobuf.ApplicationMetadataMessage_SYNC_COLLECTIBLE_PREFERENCES:
|
||||
var message protobuf.SyncCollectiblePreferences
|
||||
err := proto.Unmarshal(rawMessage.GetPayload(), &message)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = m.HandleSyncCollectiblePreferences(state, &message, nil)
|
||||
if err != nil {
|
||||
m.logger.Error("failed to HandleSyncCollectiblePreferences when HandleSyncRawMessages", zap.Error(err))
|
||||
continue
|
||||
}
|
||||
case protobuf.ApplicationMetadataMessage_SYNC_SAVED_ADDRESS:
|
||||
var message protobuf.SyncSavedAddress
|
||||
err := proto.Unmarshal(rawMessage.GetPayload(), &message)
|
||||
|
|
|
@ -511,6 +511,103 @@ func (m *Messenger) syncTokenPreferences(rawMessageHandler RawMessageHandler) er
|
|||
return err
|
||||
}
|
||||
|
||||
func (m *Messenger) UpdateCollectiblePreferences(preferences []walletsettings.CollectiblePreferences) error {
|
||||
clock, _ := m.getLastClockWithRelatedChat()
|
||||
testNetworksEnabled, err := m.settings.GetTestNetworksEnabled()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
groupByCommunity, err := m.settings.GetCollectibleGroupByCommunity()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
groupByCollection, err := m.settings.GetCollectibleGroupByCollection()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = m.settings.UpdateCollectiblePreferences(preferences, groupByCommunity, groupByCollection, testNetworksEnabled, clock)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return m.syncCollectiblePreferences(m.dispatchMessage)
|
||||
}
|
||||
|
||||
func (m *Messenger) GetCollectiblePreferences() ([]walletsettings.CollectiblePreferences, error) {
|
||||
testNetworksEnabled, err := m.settings.GetTestNetworksEnabled()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
list, err := m.settings.GetCollectiblePreferences(testNetworksEnabled)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return list, nil
|
||||
}
|
||||
|
||||
func (m *Messenger) prepareCollectiblePreferencesMessage(pref walletsettings.CollectiblePreferences) *protobuf.CollectiblePreferences {
|
||||
return &protobuf.CollectiblePreferences{
|
||||
Type: int64(pref.Type),
|
||||
Key: pref.Key,
|
||||
Position: int64(pref.Position),
|
||||
Visible: pref.Visible,
|
||||
}
|
||||
}
|
||||
|
||||
func (m *Messenger) syncCollectiblePreferences(rawMessageHandler RawMessageHandler) error {
|
||||
if !m.hasPairedDevices() {
|
||||
return nil
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
defer cancel()
|
||||
|
||||
_, chat := m.getLastClockWithRelatedChat()
|
||||
|
||||
lastUpdate, err := m.settings.GetClockOfLastCollectiblePreferencesChange()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
testNetworksEnabled, err := m.settings.GetTestNetworksEnabled()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
preferences, err := m.GetCollectiblePreferences()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
message := &protobuf.SyncCollectiblePreferences{
|
||||
Clock: lastUpdate,
|
||||
Testnet: testNetworksEnabled,
|
||||
}
|
||||
|
||||
for _, pref := range preferences {
|
||||
message.Preferences = append(message.Preferences, m.prepareCollectiblePreferencesMessage(pref))
|
||||
}
|
||||
|
||||
encodedMessage, err := proto.Marshal(message)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
rawMessage := common.RawMessage{
|
||||
LocalChatID: chat.ID,
|
||||
Payload: encodedMessage,
|
||||
MessageType: protobuf.ApplicationMetadataMessage_SYNC_COLLECTIBLE_PREFERENCES,
|
||||
ResendAutomatically: true,
|
||||
}
|
||||
|
||||
_, err = rawMessageHandler(ctx, rawMessage)
|
||||
return err
|
||||
}
|
||||
|
||||
func (m *Messenger) syncAccountsPositions(rawMessageHandler RawMessageHandler) error {
|
||||
if !m.hasPairedDevices() {
|
||||
return nil
|
||||
|
|
|
@ -1,28 +1,32 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.24.3
|
||||
// source: anon_metrics.proto
|
||||
|
||||
package protobuf
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||
math "math"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// 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
|
||||
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)
|
||||
)
|
||||
|
||||
// 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
|
||||
|
@ -36,153 +40,243 @@ 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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
||||
}
|
||||
|
||||
func (m *AnonymousMetric) Reset() { *m = AnonymousMetric{} }
|
||||
func (m *AnonymousMetric) String() string { return proto.CompactTextString(m) }
|
||||
func (*AnonymousMetric) ProtoMessage() {}
|
||||
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 (*AnonymousMetric) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4be044a92fa0408c, []int{0}
|
||||
return file_anon_metrics_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *AnonymousMetric) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AnonymousMetric) GetEvent() string {
|
||||
if m != nil {
|
||||
return m.Event
|
||||
func (x *AnonymousMetric) GetEvent() string {
|
||||
if x != nil {
|
||||
return x.Event
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AnonymousMetric) GetValue() []byte {
|
||||
if m != nil {
|
||||
return m.Value
|
||||
func (x *AnonymousMetric) GetValue() []byte {
|
||||
if x != nil {
|
||||
return x.Value
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AnonymousMetric) GetAppVersion() string {
|
||||
if m != nil {
|
||||
return m.AppVersion
|
||||
func (x *AnonymousMetric) GetAppVersion() string {
|
||||
if x != nil {
|
||||
return x.AppVersion
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AnonymousMetric) GetOs() string {
|
||||
if m != nil {
|
||||
return m.Os
|
||||
func (x *AnonymousMetric) GetOs() string {
|
||||
if x != nil {
|
||||
return x.Os
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AnonymousMetric) GetSessionId() string {
|
||||
if m != nil {
|
||||
return m.SessionId
|
||||
func (x *AnonymousMetric) GetSessionId() string {
|
||||
if x != nil {
|
||||
return x.SessionId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AnonymousMetric) GetCreatedAt() *timestamppb.Timestamp {
|
||||
if m != nil {
|
||||
return m.CreatedAt
|
||||
func (x *AnonymousMetric) GetCreatedAt() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Metrics []*AnonymousMetric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
|
||||
}
|
||||
|
||||
func (m *AnonymousMetricBatch) Reset() { *m = AnonymousMetricBatch{} }
|
||||
func (m *AnonymousMetricBatch) String() string { return proto.CompactTextString(m) }
|
||||
func (*AnonymousMetricBatch) ProtoMessage() {}
|
||||
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 (*AnonymousMetricBatch) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4be044a92fa0408c, []int{1}
|
||||
return file_anon_metrics_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *AnonymousMetricBatch) GetMetrics() []*AnonymousMetric {
|
||||
if x != nil {
|
||||
return x.Metrics
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*AnonymousMetric)(nil), "protobuf.AnonymousMetric")
|
||||
proto.RegisterType((*AnonymousMetricBatch)(nil), "protobuf.AnonymousMetricBatch")
|
||||
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.RegisterFile("anon_metrics.proto", fileDescriptor_4be044a92fa0408c)
|
||||
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
|
||||
}
|
||||
|
||||
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,
|
||||
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
|
||||
}
|
||||
|
|
|
@ -1,54 +1,56 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.24.3
|
||||
// source: application_metadata_message.proto
|
||||
|
||||
package protobuf
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// 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
|
||||
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)
|
||||
)
|
||||
|
||||
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
|
||||
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_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_COMMUNITY_REQUEST_TO_JOIN ApplicationMetadataMessage_Type = 27
|
||||
ApplicationMetadataMessage_PIN_MESSAGE ApplicationMetadataMessage_Type = 28
|
||||
ApplicationMetadataMessage_EDIT_MESSAGE ApplicationMetadataMessage_Type = 29
|
||||
|
@ -99,313 +101,497 @@ const (
|
|||
ApplicationMetadataMessage_SYNC_ACTIVITY_CENTER_COMMUNITY_REQUEST_DECISION ApplicationMetadataMessage_Type = 77
|
||||
ApplicationMetadataMessage_SYNC_TOKEN_PREFERENCES ApplicationMetadataMessage_Type = 78
|
||||
ApplicationMetadataMessage_COMMUNITY_PUBLIC_SHARD_INFO ApplicationMetadataMessage_Type = 79
|
||||
ApplicationMetadataMessage_SYNC_COLLECTIBLE_PREFERENCES ApplicationMetadataMessage_Type = 80
|
||||
)
|
||||
|
||||
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",
|
||||
}
|
||||
// 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",
|
||||
}
|
||||
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,
|
||||
}
|
||||
)
|
||||
|
||||
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,
|
||||
func (x ApplicationMetadataMessage_Type) Enum() *ApplicationMetadataMessage_Type {
|
||||
p := new(ApplicationMetadataMessage_Type)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x ApplicationMetadataMessage_Type) String() string {
|
||||
return proto.EnumName(ApplicationMetadataMessage_Type_name, int32(x))
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(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 fileDescriptor_ad09a6406fcf24c7, []int{0, 0}
|
||||
return file_application_metadata_message_proto_rawDescGZIP(), []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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Type ApplicationMetadataMessage_Type `protobuf:"varint,3,opt,name=type,proto3,enum=protobuf.ApplicationMetadataMessage_Type" json:"type,omitempty"`
|
||||
}
|
||||
|
||||
func (m *ApplicationMetadataMessage) Reset() { *m = ApplicationMetadataMessage{} }
|
||||
func (m *ApplicationMetadataMessage) String() string { return proto.CompactTextString(m) }
|
||||
func (*ApplicationMetadataMessage) ProtoMessage() {}
|
||||
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 (*ApplicationMetadataMessage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ad09a6406fcf24c7, []int{0}
|
||||
return file_application_metadata_message_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *ApplicationMetadataMessage) GetSignature() []byte {
|
||||
if x != nil {
|
||||
return x.Signature
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ApplicationMetadataMessage) GetPayload() []byte {
|
||||
if m != nil {
|
||||
return m.Payload
|
||||
func (x *ApplicationMetadataMessage) GetPayload() []byte {
|
||||
if x != nil {
|
||||
return x.Payload
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ApplicationMetadataMessage) GetType() ApplicationMetadataMessage_Type {
|
||||
if m != nil {
|
||||
return m.Type
|
||||
func (x *ApplicationMetadataMessage) GetType() ApplicationMetadataMessage_Type {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return ApplicationMetadataMessage_UNKNOWN
|
||||
}
|
||||
|
||||
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 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, 0x85,
|
||||
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, 0xef, 0x12, 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, 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.RegisterFile("application_metadata_message.proto", fileDescriptor_ad09a6406fcf24c7)
|
||||
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
|
||||
}
|
||||
|
||||
var fileDescriptor_ad09a6406fcf24c7 = []byte{
|
||||
// 1152 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x56, 0x6d, 0x53, 0x1b, 0x37,
|
||||
0x17, 0x7d, 0x48, 0xfc, 0x24, 0x8e, 0x08, 0x44, 0x51, 0xde, 0x0c, 0x31, 0x01, 0x1c, 0x02, 0x84,
|
||||
0xb4, 0xa6, 0x85, 0xb6, 0xd3, 0x36, 0x4d, 0x5b, 0x59, 0xba, 0xb6, 0x85, 0x77, 0xa5, 0x8d, 0xa4,
|
||||
0x75, 0xc7, 0xf9, 0xa2, 0x71, 0x1a, 0x37, 0xc3, 0x4c, 0x12, 0x3c, 0xc1, 0xf9, 0xc0, 0x8f, 0xec,
|
||||
0xaf, 0xe8, 0x1f, 0xe9, 0x68, 0x5f, 0x0d, 0x36, 0xe5, 0x13, 0x58, 0xf7, 0xe8, 0x4a, 0xe7, 0xdc,
|
||||
0x73, 0xaf, 0x16, 0x35, 0x86, 0xe3, 0xf1, 0x87, 0xe3, 0x3f, 0x87, 0x93, 0xe3, 0x93, 0x4f, 0xee,
|
||||
0xe3, 0x68, 0x32, 0x7c, 0x37, 0x9c, 0x0c, 0xdd, 0xc7, 0xd1, 0xe9, 0xe9, 0xf0, 0xfd, 0xa8, 0x39,
|
||||
0xfe, 0x7c, 0x32, 0x39, 0x21, 0xd5, 0xe4, 0xcf, 0xdb, 0x2f, 0x7f, 0x35, 0xfe, 0xb9, 0x87, 0x56,
|
||||
0x69, 0xb9, 0x21, 0xcc, 0xf0, 0x61, 0x0a, 0x27, 0x75, 0x74, 0xeb, 0xf4, 0xf8, 0xfd, 0xa7, 0xe1,
|
||||
0xe4, 0xcb, 0xe7, 0x51, 0x6d, 0x61, 0x63, 0x61, 0xf7, 0xb6, 0x2e, 0x17, 0x48, 0x0d, 0xdd, 0x1c,
|
||||
0x0f, 0xcf, 0x3e, 0x9c, 0x0c, 0xdf, 0xd5, 0xae, 0x25, 0xb1, 0xfc, 0x27, 0x79, 0x85, 0x2a, 0x93,
|
||||
0xb3, 0xf1, 0xa8, 0x76, 0x7d, 0x63, 0x61, 0x77, 0xf9, 0xe0, 0x79, 0x33, 0x3f, 0xaf, 0x79, 0xf9,
|
||||
0x59, 0x4d, 0x7b, 0x36, 0x1e, 0xe9, 0x64, 0x5b, 0xe3, 0x6f, 0x82, 0x2a, 0xfe, 0x27, 0x59, 0x44,
|
||||
0x37, 0x63, 0xd9, 0x93, 0xea, 0x0f, 0x89, 0xff, 0x47, 0x30, 0xba, 0xcd, 0xba, 0xd4, 0xba, 0x10,
|
||||
0x8c, 0xa1, 0x1d, 0xc0, 0x0b, 0x84, 0xa0, 0x65, 0xa6, 0xa4, 0xa5, 0xcc, 0xba, 0x38, 0xe2, 0xd4,
|
||||
0x02, 0xbe, 0x46, 0xd6, 0xd0, 0x4a, 0x08, 0x61, 0x0b, 0xb4, 0xe9, 0x8a, 0x28, 0x5b, 0x2e, 0xb6,
|
||||
0x5c, 0x27, 0xab, 0xe8, 0xa1, 0x19, 0x48, 0xe6, 0x22, 0x2a, 0xb4, 0x13, 0xd2, 0x58, 0x1a, 0x04,
|
||||
0xd4, 0x0a, 0x25, 0x71, 0x85, 0x6c, 0xa1, 0x3a, 0x87, 0x48, 0x03, 0xa3, 0x16, 0xb8, 0x4b, 0x60,
|
||||
0xe7, 0x10, 0xff, 0x5f, 0xbd, 0x56, 0x5d, 0x20, 0x4f, 0xd1, 0xba, 0x86, 0xd7, 0x31, 0x18, 0xeb,
|
||||
0x28, 0xe7, 0x1a, 0x8c, 0x71, 0x6d, 0xa5, 0x9d, 0xd5, 0x54, 0x1a, 0xca, 0x12, 0xe0, 0x0d, 0xb2,
|
||||
0x87, 0xb6, 0x29, 0x63, 0x10, 0x59, 0x77, 0x15, 0xf6, 0x26, 0x79, 0x81, 0x76, 0x38, 0xb0, 0x40,
|
||||
0x48, 0xb8, 0x12, 0x5c, 0x25, 0x8f, 0xd0, 0xbd, 0x1c, 0x34, 0x1d, 0xb8, 0x45, 0xee, 0x23, 0x6c,
|
||||
0x40, 0xf2, 0x73, 0xab, 0x88, 0xac, 0xa3, 0xc7, 0x17, 0x73, 0x4f, 0x03, 0x16, 0xc9, 0x06, 0xaa,
|
||||
0xcf, 0x10, 0x75, 0xb9, 0xa8, 0xfd, 0x03, 0x7c, 0xdb, 0x0b, 0x3a, 0x8b, 0xa0, 0x8c, 0xa9, 0x58,
|
||||
0x5a, 0xbc, 0x44, 0x9e, 0xa0, 0xd5, 0x1c, 0xce, 0x14, 0x07, 0x47, 0x79, 0x1f, 0xb4, 0x15, 0x06,
|
||||
0x42, 0x90, 0x16, 0xdf, 0x21, 0x0d, 0xf4, 0x24, 0x8a, 0x4d, 0xd7, 0x49, 0x65, 0x45, 0x5b, 0xb0,
|
||||
0x74, 0xbb, 0x86, 0x8e, 0x30, 0x56, 0xa7, 0xb2, 0x62, 0xaf, 0xc0, 0x7f, 0x63, 0x9c, 0x06, 0x13,
|
||||
0x29, 0x69, 0x00, 0xdf, 0x25, 0x8f, 0xd1, 0xa3, 0x59, 0xf0, 0xeb, 0x18, 0xf4, 0x00, 0x13, 0xb2,
|
||||
0x85, 0x36, 0x2e, 0x09, 0x96, 0x29, 0xee, 0x79, 0x4a, 0xf3, 0xce, 0x4b, 0xf4, 0xc1, 0xf7, 0x3d,
|
||||
0xa5, 0x79, 0xe1, 0x6c, 0xfb, 0x03, 0x6f, 0x3b, 0x08, 0xd5, 0x91, 0x70, 0x1a, 0x32, 0x1d, 0x1f,
|
||||
0x92, 0x15, 0xf4, 0xa0, 0xa3, 0x55, 0x1c, 0xb9, 0xc4, 0xa2, 0x42, 0xf6, 0x85, 0x4d, 0xd9, 0x3d,
|
||||
0x22, 0x77, 0xd1, 0x52, 0xba, 0xc8, 0x41, 0x5a, 0x61, 0x07, 0xb8, 0xe6, 0xd1, 0x4c, 0x85, 0x61,
|
||||
0x2c, 0x85, 0x1d, 0x38, 0x0e, 0x86, 0x69, 0x11, 0x25, 0xe8, 0x15, 0x52, 0x47, 0xf7, 0xcb, 0xd0,
|
||||
0x54, 0x9e, 0xd5, 0xc4, 0x7c, 0x6b, 0x68, 0xa5, 0x8c, 0x16, 0x15, 0x55, 0xee, 0x48, 0x09, 0x89,
|
||||
0x1f, 0x93, 0x3b, 0x68, 0x31, 0x12, 0xb2, 0xb0, 0x7b, 0xdd, 0xf7, 0x0c, 0x70, 0x51, 0xf6, 0xcc,
|
||||
0x9a, 0xbf, 0x8d, 0xb1, 0xd4, 0xc6, 0x26, 0x6f, 0x99, 0x27, 0x9e, 0x0f, 0x87, 0x00, 0xa6, 0xfa,
|
||||
0x64, 0xdd, 0x1b, 0x67, 0x9e, 0x2f, 0xb2, 0xa3, 0xf1, 0x86, 0x6f, 0x24, 0x2a, 0x95, 0x1c, 0x84,
|
||||
0x2a, 0x36, 0x2e, 0x04, 0xab, 0x05, 0x73, 0x2d, 0x6a, 0x59, 0x17, 0x6f, 0x92, 0x07, 0xe8, 0x6e,
|
||||
0xb2, 0x39, 0xa1, 0xad, 0x21, 0x54, 0x7d, 0xe0, 0xb8, 0xe1, 0x2b, 0x57, 0x2e, 0x67, 0x47, 0x19,
|
||||
0x2f, 0x22, 0xc7, 0x4f, 0x09, 0x42, 0x37, 0x5a, 0x94, 0xf5, 0xe2, 0x08, 0x6f, 0x15, 0x96, 0xf3,
|
||||
0xea, 0xf6, 0x3d, 0x53, 0x06, 0xd2, 0x82, 0x4e, 0xa1, 0xcf, 0xc8, 0x26, 0x5a, 0x9b, 0x1b, 0x4e,
|
||||
0x3b, 0x0e, 0x38, 0xde, 0xf6, 0xae, 0x9b, 0x0b, 0xe1, 0xc2, 0x84, 0xc2, 0x18, 0xe0, 0x78, 0x27,
|
||||
0x51, 0xc2, 0x63, 0x5a, 0x4a, 0xf5, 0x42, 0xaa, 0x7b, 0x78, 0x97, 0x3c, 0x44, 0x24, 0xbd, 0x61,
|
||||
0x00, 0x54, 0xbb, 0xae, 0x30, 0x56, 0xe9, 0x01, 0x7e, 0xee, 0x65, 0x4c, 0xd6, 0x0d, 0x58, 0x2b,
|
||||
0x64, 0x07, 0xef, 0x91, 0x5d, 0xb4, 0x55, 0x16, 0x22, 0xe3, 0xe2, 0xa8, 0x66, 0x5d, 0xd1, 0x07,
|
||||
0x17, 0xd2, 0x8e, 0x04, 0x1b, 0x08, 0xd9, 0xc3, 0x2f, 0x7c, 0xad, 0xd3, 0x89, 0xa3, 0x55, 0x5b,
|
||||
0x04, 0xe0, 0x22, 0xc1, 0x6c, 0xac, 0xc1, 0xe0, 0xaf, 0x8a, 0xb4, 0x79, 0x37, 0x7d, 0x9d, 0xa8,
|
||||
0x9a, 0xce, 0x8d, 0xbc, 0xa9, 0x72, 0x5b, 0x36, 0xbd, 0x7c, 0x1a, 0xac, 0x4e, 0x3b, 0xed, 0x7c,
|
||||
0x70, 0x9f, 0x6c, 0xa3, 0xc6, 0xa5, 0xc6, 0x28, 0xbd, 0xfb, 0x4d, 0x59, 0x83, 0x02, 0x9c, 0x71,
|
||||
0x32, 0xf8, 0x5b, 0x3f, 0x0c, 0xf2, 0xad, 0xc5, 0x08, 0x00, 0x5d, 0xf4, 0x00, 0x3e, 0xf0, 0xb6,
|
||||
0xb8, 0x70, 0xbf, 0x73, 0x80, 0x43, 0x9f, 0x22, 0x1f, 0x38, 0x73, 0x11, 0xdf, 0x15, 0xe6, 0xb0,
|
||||
0x3a, 0x36, 0x7e, 0xce, 0xc6, 0x06, 0x34, 0xfe, 0xbe, 0xa8, 0xf9, 0x34, 0xba, 0xe0, 0xf7, 0x43,
|
||||
0x51, 0xf3, 0x0b, 0xcc, 0x1d, 0x07, 0x26, 0x8c, 0x4f, 0xfc, 0x63, 0x3a, 0x89, 0xe6, 0x48, 0x10,
|
||||
0x00, 0xed, 0x03, 0xfe, 0xc9, 0xc7, 0x93, 0x14, 0x99, 0xd7, 0xfd, 0x6c, 0x0d, 0x4b, 0xcb, 0xff,
|
||||
0x5c, 0x14, 0xdf, 0xd0, 0x3e, 0xf0, 0x7c, 0x04, 0xe3, 0x97, 0x7e, 0xa6, 0x94, 0x79, 0x19, 0x95,
|
||||
0x0c, 0x82, 0x99, 0xd6, 0xfb, 0xc5, 0x2b, 0x93, 0xc5, 0xe6, 0xf2, 0x7e, 0x55, 0x14, 0xbb, 0x07,
|
||||
0x03, 0xff, 0xf8, 0xe0, 0x5f, 0x0b, 0x25, 0x8c, 0x62, 0x82, 0x06, 0xce, 0xfb, 0xc5, 0xe0, 0xdf,
|
||||
0x48, 0x1d, 0xd5, 0x92, 0x65, 0x90, 0x26, 0x11, 0x47, 0xd2, 0x10, 0x1c, 0x07, 0x4b, 0x45, 0x80,
|
||||
0x7f, 0xf7, 0xd1, 0xf2, 0x36, 0xd0, 0x07, 0x69, 0x4d, 0xc1, 0x81, 0xf9, 0xc7, 0x69, 0x2a, 0xea,
|
||||
0x3b, 0xdf, 0x74, 0xa9, 0x2e, 0xe9, 0x80, 0xc1, 0xdc, 0x13, 0x9a, 0xb6, 0x9d, 0x63, 0xb1, 0xb1,
|
||||
0x2a, 0x14, 0x6f, 0xf2, 0x26, 0x0f, 0x94, 0xc6, 0x50, 0x38, 0x25, 0x43, 0x19, 0x17, 0x29, 0x23,
|
||||
0x3c, 0xc2, 0xe0, 0x36, 0x79, 0x86, 0x36, 0x2f, 0xbb, 0x85, 0xd3, 0x70, 0x04, 0xcc, 0xb7, 0x61,
|
||||
0xc7, 0x3f, 0x83, 0x25, 0x2c, 0xd2, 0xa2, 0x2f, 0x02, 0xe8, 0x64, 0x35, 0x4f, 0x1f, 0xd8, 0xfc,
|
||||
0xea, 0x5d, 0xff, 0xb2, 0x4d, 0x99, 0xb2, 0x4b, 0x35, 0xf7, 0x52, 0x61, 0x41, 0x96, 0xd0, 0xad,
|
||||
0x62, 0x6c, 0xe0, 0xa3, 0xe2, 0xc5, 0x9a, 0x69, 0xed, 0xa4, 0xac, 0x1c, 0xf7, 0x8a, 0xd9, 0x75,
|
||||
0x11, 0x11, 0xcb, 0x64, 0x80, 0x04, 0xe4, 0x10, 0xed, 0xcf, 0x05, 0xcc, 0xda, 0xa7, 0xb0, 0x57,
|
||||
0x58, 0x7c, 0x39, 0x58, 0xd5, 0x03, 0xe9, 0x22, 0x0d, 0x6d, 0xd0, 0x20, 0x19, 0x18, 0x2c, 0x93,
|
||||
0xe2, 0x97, 0x3c, 0xe3, 0x56, 0x20, 0x58, 0x46, 0x41, 0xc8, 0xb6, 0xc2, 0xaa, 0x51, 0xa9, 0x2e,
|
||||
0xe3, 0xe5, 0x46, 0xa5, 0x4a, 0x31, 0x6d, 0x54, 0xaa, 0x2d, 0xdc, 0xda, 0x5b, 0x9b, 0x1d, 0xaf,
|
||||
0xd9, 0x46, 0xcf, 0x73, 0xaf, 0x31, 0xf7, 0x82, 0xd3, 0x2f, 0x92, 0xd9, 0xdb, 0xb9, 0x12, 0xe3,
|
||||
0xfc, 0xa8, 0x87, 0xd6, 0xd2, 0x9b, 0xc5, 0xe6, 0xfe, 0xcb, 0xfc, 0x23, 0xec, 0xed, 0x8d, 0xe4,
|
||||
0xbf, 0xc3, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x84, 0x7a, 0x01, 0xa7, 0x2b, 0x0a, 0x00, 0x00,
|
||||
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
|
||||
}
|
||||
|
|
|
@ -97,5 +97,6 @@ message ApplicationMetadataMessage {
|
|||
SYNC_ACTIVITY_CENTER_COMMUNITY_REQUEST_DECISION = 77;
|
||||
SYNC_TOKEN_PREFERENCES = 78;
|
||||
COMMUNITY_PUBLIC_SHARD_INFO = 79;
|
||||
SYNC_COLLECTIBLE_PREFERENCES = 80;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,24 +1,24 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.24.3
|
||||
// source: chat_identity.proto
|
||||
|
||||
package protobuf
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// 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
|
||||
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)
|
||||
)
|
||||
|
||||
// SourceType are the predefined types of image source allowed
|
||||
type IdentityImage_SourceType int32
|
||||
|
@ -34,28 +34,53 @@ const (
|
|||
IdentityImage_ENS_AVATAR IdentityImage_SourceType = 2
|
||||
)
|
||||
|
||||
var IdentityImage_SourceType_name = map[int32]string{
|
||||
0: "UNKNOWN_SOURCE_TYPE",
|
||||
1: "RAW_PAYLOAD",
|
||||
2: "ENS_AVATAR",
|
||||
}
|
||||
// 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_value = map[string]int32{
|
||||
"UNKNOWN_SOURCE_TYPE": 0,
|
||||
"RAW_PAYLOAD": 1,
|
||||
"ENS_AVATAR": 2,
|
||||
func (x IdentityImage_SourceType) Enum() *IdentityImage_SourceType {
|
||||
p := new(IdentityImage_SourceType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x IdentityImage_SourceType) String() string {
|
||||
return proto.EnumName(IdentityImage_SourceType_name, int32(x))
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(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 fileDescriptor_7a652489000a5879, []int{1, 0}
|
||||
return file_chat_identity_proto_rawDescGZIP(), []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
|
||||
|
@ -74,108 +99,116 @@ 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 (m *ChatIdentity) Reset() { *m = ChatIdentity{} }
|
||||
func (m *ChatIdentity) String() string { return proto.CompactTextString(m) }
|
||||
func (*ChatIdentity) ProtoMessage() {}
|
||||
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 (*ChatIdentity) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_7a652489000a5879, []int{0}
|
||||
return file_chat_identity_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *ChatIdentity) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ChatIdentity) GetEnsName() string {
|
||||
if m != nil {
|
||||
return m.EnsName
|
||||
func (x *ChatIdentity) GetEnsName() string {
|
||||
if x != nil {
|
||||
return x.EnsName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ChatIdentity) GetImages() map[string]*IdentityImage {
|
||||
if m != nil {
|
||||
return m.Images
|
||||
func (x *ChatIdentity) GetImages() map[string]*IdentityImage {
|
||||
if x != nil {
|
||||
return x.Images
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ChatIdentity) GetDisplayName() string {
|
||||
if m != nil {
|
||||
return m.DisplayName
|
||||
func (x *ChatIdentity) GetDisplayName() string {
|
||||
if x != nil {
|
||||
return x.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ChatIdentity) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
func (x *ChatIdentity) GetDescription() string {
|
||||
if x != nil {
|
||||
return x.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ChatIdentity) GetColor() string {
|
||||
if m != nil {
|
||||
return m.Color
|
||||
func (x *ChatIdentity) GetColor() string {
|
||||
if x != nil {
|
||||
return x.Color
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ChatIdentity) GetEmoji() string {
|
||||
if m != nil {
|
||||
return m.Emoji
|
||||
func (x *ChatIdentity) GetEmoji() string {
|
||||
if x != nil {
|
||||
return x.Emoji
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ChatIdentity) GetSocialLinks() []*SocialLink {
|
||||
if m != nil {
|
||||
return m.SocialLinks
|
||||
func (x *ChatIdentity) GetSocialLinks() []*SocialLink {
|
||||
if x != nil {
|
||||
return x.SocialLinks
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ChatIdentity) GetFirstMessageTimestamp() uint32 {
|
||||
if m != nil {
|
||||
return m.FirstMessageTimestamp
|
||||
func (x *ChatIdentity) GetFirstMessageTimestamp() uint32 {
|
||||
if x != nil {
|
||||
return x.FirstMessageTimestamp
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ChatIdentity) GetProfileShowcase() *ProfileShowcase {
|
||||
if m != nil {
|
||||
return m.ProfileShowcase
|
||||
func (x *ChatIdentity) GetProfileShowcase() *ProfileShowcase {
|
||||
if x != nil {
|
||||
return x.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"`
|
||||
|
@ -186,168 +219,296 @@ 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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Encrypted bool `protobuf:"varint,5,opt,name=encrypted,proto3" json:"encrypted,omitempty"`
|
||||
}
|
||||
|
||||
func (m *IdentityImage) Reset() { *m = IdentityImage{} }
|
||||
func (m *IdentityImage) String() string { return proto.CompactTextString(m) }
|
||||
func (*IdentityImage) ProtoMessage() {}
|
||||
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 (*IdentityImage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_7a652489000a5879, []int{1}
|
||||
return file_chat_identity_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *IdentityImage) GetPayload() []byte {
|
||||
if x != nil {
|
||||
return x.Payload
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *IdentityImage) GetSourceType() IdentityImage_SourceType {
|
||||
if m != nil {
|
||||
return m.SourceType
|
||||
func (x *IdentityImage) GetSourceType() IdentityImage_SourceType {
|
||||
if x != nil {
|
||||
return x.SourceType
|
||||
}
|
||||
return IdentityImage_UNKNOWN_SOURCE_TYPE
|
||||
}
|
||||
|
||||
func (m *IdentityImage) GetImageType() ImageType {
|
||||
if m != nil {
|
||||
return m.ImageType
|
||||
func (x *IdentityImage) GetImageType() ImageType {
|
||||
if x != nil {
|
||||
return x.ImageType
|
||||
}
|
||||
return ImageType_UNKNOWN_IMAGE_TYPE
|
||||
}
|
||||
|
||||
func (m *IdentityImage) GetEncryptionKeys() [][]byte {
|
||||
if m != nil {
|
||||
return m.EncryptionKeys
|
||||
func (x *IdentityImage) GetEncryptionKeys() [][]byte {
|
||||
if x != nil {
|
||||
return x.EncryptionKeys
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *IdentityImage) GetEncrypted() bool {
|
||||
if m != nil {
|
||||
return m.Encrypted
|
||||
func (x *IdentityImage) GetEncrypted() bool {
|
||||
if x != nil {
|
||||
return x.Encrypted
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// SocialLinks represents social link assosiated with given chat identity (personal/community)
|
||||
type SocialLink struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *SocialLink) Reset() { *m = SocialLink{} }
|
||||
func (m *SocialLink) String() string { return proto.CompactTextString(m) }
|
||||
func (*SocialLink) ProtoMessage() {}
|
||||
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 (*SocialLink) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_7a652489000a5879, []int{2}
|
||||
return file_chat_identity_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *SocialLink) GetText() string {
|
||||
if x != nil {
|
||||
return x.Text
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *SocialLink) GetUrl() string {
|
||||
if m != nil {
|
||||
return m.Url
|
||||
func (x *SocialLink) GetUrl() string {
|
||||
if x != nil {
|
||||
return x.Url
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
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 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, 0xb1,
|
||||
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,
|
||||
0x32, 0x0a, 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20,
|
||||
0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49,
|
||||
0x6d, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x54,
|
||||
0x79, 0x70, 0x65, 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.RegisterFile("chat_identity.proto", fileDescriptor_7a652489000a5879)
|
||||
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
|
||||
}
|
||||
|
||||
var fileDescriptor_7a652489000a5879 = []byte{
|
||||
// 561 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x53, 0x41, 0x6f, 0xd3, 0x30,
|
||||
0x14, 0x26, 0x4d, 0xb7, 0xb5, 0x2f, 0xdd, 0x56, 0x79, 0x83, 0x65, 0x13, 0x87, 0xd0, 0x0b, 0xb9,
|
||||
0x10, 0xa4, 0x22, 0x01, 0x1a, 0xa7, 0xb0, 0x15, 0x69, 0xda, 0xe8, 0x26, 0xb7, 0x63, 0x1a, 0x17,
|
||||
0xcb, 0x4b, 0xdd, 0xd5, 0x34, 0x89, 0xa3, 0xd8, 0x05, 0xf2, 0xb3, 0xf8, 0x75, 0x5c, 0x51, 0xec,
|
||||
0x64, 0x69, 0x39, 0xf5, 0x7b, 0xdf, 0xf7, 0xfc, 0xf9, 0xf5, 0x7d, 0x0e, 0x1c, 0x44, 0x0b, 0xaa,
|
||||
0x08, 0x9f, 0xb1, 0x54, 0x71, 0x55, 0x04, 0x59, 0x2e, 0x94, 0x40, 0x1d, 0xfd, 0xf3, 0xb0, 0x9a,
|
||||
0x9f, 0x38, 0x2c, 0x5d, 0x25, 0xd2, 0xd0, 0x27, 0x2f, 0xb2, 0x5c, 0xcc, 0x79, 0xcc, 0x88, 0x5c,
|
||||
0x88, 0x5f, 0x11, 0x95, 0xcc, 0xf0, 0x83, 0xbf, 0x36, 0xf4, 0xce, 0x16, 0x54, 0x5d, 0x54, 0x2e,
|
||||
0xe8, 0x10, 0xb6, 0xa2, 0x58, 0x44, 0x4b, 0xd7, 0xf2, 0x2c, 0xbf, 0x8d, 0x4d, 0x81, 0x8e, 0xa1,
|
||||
0xc3, 0x52, 0x49, 0x52, 0x9a, 0x30, 0xb7, 0xe5, 0x59, 0x7e, 0x17, 0xef, 0xb0, 0x54, 0x8e, 0x69,
|
||||
0xc2, 0xd0, 0x29, 0x6c, 0xf3, 0x84, 0x3e, 0x32, 0xe9, 0xda, 0x9e, 0xed, 0x3b, 0xc3, 0x41, 0x50,
|
||||
0x4f, 0x10, 0xac, 0x1b, 0x07, 0x17, 0xba, 0x69, 0x94, 0xaa, 0xbc, 0xc0, 0xd5, 0x09, 0xf4, 0x0a,
|
||||
0x7a, 0x33, 0x2e, 0xb3, 0x98, 0x16, 0xc6, 0xba, 0xad, 0xad, 0x9d, 0x8a, 0xd3, 0xf6, 0x1e, 0x38,
|
||||
0x33, 0x26, 0xa3, 0x9c, 0x67, 0x8a, 0x8b, 0xd4, 0xdd, 0xaa, 0x3a, 0x1a, 0x4a, 0x4f, 0x2c, 0x62,
|
||||
0x91, 0xbb, 0xdb, 0x5a, 0x33, 0x45, 0xc9, 0xb2, 0x44, 0xfc, 0xe0, 0xee, 0x8e, 0x61, 0x75, 0x81,
|
||||
0x3e, 0x40, 0x4f, 0x8a, 0x88, 0xd3, 0x98, 0xc4, 0x3c, 0x5d, 0x4a, 0xb7, 0xa3, 0x47, 0x3e, 0x6c,
|
||||
0x46, 0x9e, 0x68, 0xf5, 0x8a, 0xa7, 0x4b, 0xec, 0xc8, 0x27, 0x2c, 0xd1, 0x7b, 0x38, 0x9a, 0xf3,
|
||||
0x5c, 0x2a, 0x92, 0x30, 0x29, 0xe9, 0x23, 0x23, 0x8a, 0x27, 0x4c, 0x2a, 0x9a, 0x64, 0x6e, 0xd7,
|
||||
0xb3, 0xfc, 0x5d, 0xfc, 0x5c, 0xcb, 0x5f, 0x8d, 0x3a, 0xad, 0x45, 0x74, 0x0e, 0xfd, 0xff, 0x37,
|
||||
0xef, 0x82, 0x67, 0xf9, 0xce, 0xf0, 0xb8, 0xb9, 0xf4, 0xc6, 0x74, 0x4c, 0xaa, 0x06, 0xbc, 0x9f,
|
||||
0x6d, 0x12, 0x27, 0x18, 0x9c, 0xb5, 0xf5, 0xa1, 0x3e, 0xd8, 0x4b, 0x56, 0xe8, 0x84, 0xba, 0xb8,
|
||||
0x84, 0xe8, 0x0d, 0x6c, 0xfd, 0xa4, 0xf1, 0xca, 0x84, 0xe3, 0x0c, 0x8f, 0x1a, 0xef, 0x7a, 0xff,
|
||||
0xfa, 0x3c, 0x36, 0x5d, 0xa7, 0xad, 0x8f, 0xd6, 0xe0, 0x4f, 0x0b, 0x76, 0x37, 0x44, 0xe4, 0xc2,
|
||||
0x4e, 0x46, 0x8b, 0x58, 0xd0, 0x99, 0xb6, 0xee, 0xe1, 0xba, 0x44, 0x67, 0xe0, 0x48, 0xb1, 0xca,
|
||||
0x23, 0x46, 0x54, 0x91, 0x99, 0x4b, 0xf6, 0xd6, 0x83, 0xde, 0xf0, 0x09, 0x26, 0xba, 0x75, 0x5a,
|
||||
0x64, 0x0c, 0x83, 0x7c, 0xc2, 0x68, 0x08, 0xa0, 0x63, 0x37, 0x1e, 0xb6, 0xf6, 0x38, 0x58, 0xf3,
|
||||
0x28, 0x35, 0x7d, 0xa8, 0xcb, 0x6b, 0x88, 0x5e, 0xc3, 0x3e, 0x4b, 0xa3, 0xbc, 0xd0, 0x49, 0x93,
|
||||
0x25, 0x2b, 0xa4, 0xdb, 0xf6, 0x6c, 0xbf, 0x87, 0xf7, 0x1a, 0xfa, 0x92, 0x15, 0x12, 0xbd, 0x84,
|
||||
0x6e, 0xc5, 0xb0, 0x99, 0x7e, 0x24, 0x1d, 0xdc, 0x10, 0x83, 0x2f, 0x00, 0xcd, 0x50, 0xe8, 0x08,
|
||||
0x0e, 0x6e, 0xc7, 0x97, 0xe3, 0xeb, 0xbb, 0x31, 0x99, 0x5c, 0xdf, 0xe2, 0xb3, 0x11, 0x99, 0xde,
|
||||
0xdf, 0x8c, 0xfa, 0xcf, 0xd0, 0x3e, 0x38, 0x38, 0xbc, 0x23, 0x37, 0xe1, 0xfd, 0xd5, 0x75, 0x78,
|
||||
0xde, 0xb7, 0xd0, 0x1e, 0xc0, 0x68, 0x3c, 0x21, 0xe1, 0xb7, 0x70, 0x1a, 0xe2, 0x7e, 0x6b, 0x30,
|
||||
0x2c, 0x7d, 0xea, 0x47, 0x81, 0x10, 0xb4, 0x15, 0xfb, 0xad, 0xaa, 0x1c, 0x34, 0x2e, 0xa3, 0x59,
|
||||
0xe5, 0x71, 0xf5, 0x8d, 0x94, 0xf0, 0xf3, 0xee, 0x77, 0x27, 0x78, 0xfb, 0xa9, 0xfe, 0x9b, 0x0f,
|
||||
0xdb, 0x1a, 0xbd, 0xfb, 0x17, 0x00, 0x00, 0xff, 0xff, 0x82, 0x0e, 0x43, 0xd8, 0xbd, 0x03, 0x00,
|
||||
0x00,
|
||||
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
|
||||
(ImageType)(0), // 6: protobuf.ImageType
|
||||
}
|
||||
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_type:type_name -> protobuf.ImageType
|
||||
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
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,435 +1,630 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.24.3
|
||||
// source: command.proto
|
||||
|
||||
package protobuf
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// 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
|
||||
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)
|
||||
)
|
||||
|
||||
type RequestAddressForTransaction struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *RequestAddressForTransaction) Reset() { *m = RequestAddressForTransaction{} }
|
||||
func (m *RequestAddressForTransaction) String() string { return proto.CompactTextString(m) }
|
||||
func (*RequestAddressForTransaction) ProtoMessage() {}
|
||||
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 (*RequestAddressForTransaction) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_213c0bb044472049, []int{0}
|
||||
return file_command_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *RequestAddressForTransaction) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *RequestAddressForTransaction) GetValue() string {
|
||||
if m != nil {
|
||||
return m.Value
|
||||
func (x *RequestAddressForTransaction) GetValue() string {
|
||||
if x != nil {
|
||||
return x.Value
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *RequestAddressForTransaction) GetContract() string {
|
||||
if m != nil {
|
||||
return m.Contract
|
||||
func (x *RequestAddressForTransaction) GetContract() string {
|
||||
if x != nil {
|
||||
return x.Contract
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *RequestAddressForTransaction) GetChatId() string {
|
||||
if m != nil {
|
||||
return m.ChatId
|
||||
func (x *RequestAddressForTransaction) GetChatId() string {
|
||||
if x != nil {
|
||||
return x.ChatId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type AcceptRequestAddressForTransaction struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *AcceptRequestAddressForTransaction) Reset() { *m = AcceptRequestAddressForTransaction{} }
|
||||
func (m *AcceptRequestAddressForTransaction) String() string { return proto.CompactTextString(m) }
|
||||
func (*AcceptRequestAddressForTransaction) ProtoMessage() {}
|
||||
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 (*AcceptRequestAddressForTransaction) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_213c0bb044472049, []int{1}
|
||||
return file_command_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *AcceptRequestAddressForTransaction) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *AcceptRequestAddressForTransaction) GetId() string {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
func (x *AcceptRequestAddressForTransaction) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AcceptRequestAddressForTransaction) GetAddress() string {
|
||||
if m != nil {
|
||||
return m.Address
|
||||
func (x *AcceptRequestAddressForTransaction) GetAddress() string {
|
||||
if x != nil {
|
||||
return x.Address
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AcceptRequestAddressForTransaction) GetChatId() string {
|
||||
if m != nil {
|
||||
return m.ChatId
|
||||
func (x *AcceptRequestAddressForTransaction) GetChatId() string {
|
||||
if x != nil {
|
||||
return x.ChatId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type DeclineRequestAddressForTransaction struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *DeclineRequestAddressForTransaction) Reset() { *m = DeclineRequestAddressForTransaction{} }
|
||||
func (m *DeclineRequestAddressForTransaction) String() string { return proto.CompactTextString(m) }
|
||||
func (*DeclineRequestAddressForTransaction) ProtoMessage() {}
|
||||
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 (*DeclineRequestAddressForTransaction) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_213c0bb044472049, []int{2}
|
||||
return file_command_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *DeclineRequestAddressForTransaction) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *DeclineRequestAddressForTransaction) GetId() string {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
func (x *DeclineRequestAddressForTransaction) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *DeclineRequestAddressForTransaction) GetChatId() string {
|
||||
if m != nil {
|
||||
return m.ChatId
|
||||
func (x *DeclineRequestAddressForTransaction) GetChatId() string {
|
||||
if x != nil {
|
||||
return x.ChatId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type DeclineRequestTransaction struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *DeclineRequestTransaction) Reset() { *m = DeclineRequestTransaction{} }
|
||||
func (m *DeclineRequestTransaction) String() string { return proto.CompactTextString(m) }
|
||||
func (*DeclineRequestTransaction) ProtoMessage() {}
|
||||
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 (*DeclineRequestTransaction) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_213c0bb044472049, []int{3}
|
||||
return file_command_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *DeclineRequestTransaction) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *DeclineRequestTransaction) GetId() string {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
func (x *DeclineRequestTransaction) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *DeclineRequestTransaction) GetChatId() string {
|
||||
if m != nil {
|
||||
return m.ChatId
|
||||
func (x *DeclineRequestTransaction) GetChatId() string {
|
||||
if x != nil {
|
||||
return x.ChatId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type RequestTransaction struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *RequestTransaction) Reset() { *m = RequestTransaction{} }
|
||||
func (m *RequestTransaction) String() string { return proto.CompactTextString(m) }
|
||||
func (*RequestTransaction) ProtoMessage() {}
|
||||
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 (*RequestTransaction) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_213c0bb044472049, []int{4}
|
||||
return file_command_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *RequestTransaction) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *RequestTransaction) GetAddress() string {
|
||||
if m != nil {
|
||||
return m.Address
|
||||
func (x *RequestTransaction) GetAddress() string {
|
||||
if x != nil {
|
||||
return x.Address
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *RequestTransaction) GetValue() string {
|
||||
if m != nil {
|
||||
return m.Value
|
||||
func (x *RequestTransaction) GetValue() string {
|
||||
if x != nil {
|
||||
return x.Value
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *RequestTransaction) GetContract() string {
|
||||
if m != nil {
|
||||
return m.Contract
|
||||
func (x *RequestTransaction) GetContract() string {
|
||||
if x != nil {
|
||||
return x.Contract
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *RequestTransaction) GetChatId() string {
|
||||
if m != nil {
|
||||
return m.ChatId
|
||||
func (x *RequestTransaction) GetChatId() string {
|
||||
if x != nil {
|
||||
return x.ChatId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type SendTransaction struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *SendTransaction) Reset() { *m = SendTransaction{} }
|
||||
func (m *SendTransaction) String() string { return proto.CompactTextString(m) }
|
||||
func (*SendTransaction) ProtoMessage() {}
|
||||
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 (*SendTransaction) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_213c0bb044472049, []int{5}
|
||||
return file_command_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *SendTransaction) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *SendTransaction) GetId() string {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
func (x *SendTransaction) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *SendTransaction) GetTransactionHash() string {
|
||||
if m != nil {
|
||||
return m.TransactionHash
|
||||
func (x *SendTransaction) GetTransactionHash() string {
|
||||
if x != nil {
|
||||
return x.TransactionHash
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *SendTransaction) GetSignature() []byte {
|
||||
if m != nil {
|
||||
return m.Signature
|
||||
func (x *SendTransaction) GetSignature() []byte {
|
||||
if x != nil {
|
||||
return x.Signature
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *SendTransaction) GetChatId() string {
|
||||
if m != nil {
|
||||
return m.ChatId
|
||||
func (x *SendTransaction) GetChatId() string {
|
||||
if x != nil {
|
||||
return x.ChatId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
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 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.RegisterFile("command.proto", fileDescriptor_213c0bb044472049)
|
||||
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
|
||||
}
|
||||
|
||||
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,
|
||||
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
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,24 +1,24 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.24.3
|
||||
// source: community_privileged_user_sync_message.proto
|
||||
|
||||
package protobuf
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// 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
|
||||
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)
|
||||
)
|
||||
|
||||
type CommunityPrivilegedUserSyncMessage_EventType int32
|
||||
|
||||
|
@ -29,135 +29,250 @@ const (
|
|||
CommunityPrivilegedUserSyncMessage_CONTROL_NODE_ALL_SYNC_REQUESTS_TO_JOIN CommunityPrivilegedUserSyncMessage_EventType = 3
|
||||
)
|
||||
|
||||
var CommunityPrivilegedUserSyncMessage_EventType_name = map[int32]string{
|
||||
0: "UNKNOWN",
|
||||
1: "CONTROL_NODE_ACCEPT_REQUEST_TO_JOIN",
|
||||
2: "CONTROL_NODE_REJECT_REQUEST_TO_JOIN",
|
||||
3: "CONTROL_NODE_ALL_SYNC_REQUESTS_TO_JOIN",
|
||||
}
|
||||
// Enum value maps for CommunityPrivilegedUserSyncMessage_EventType.
|
||||
var (
|
||||
CommunityPrivilegedUserSyncMessage_EventType_name = map[int32]string{
|
||||
0: "UNKNOWN",
|
||||
1: "CONTROL_NODE_ACCEPT_REQUEST_TO_JOIN",
|
||||
2: "CONTROL_NODE_REJECT_REQUEST_TO_JOIN",
|
||||
3: "CONTROL_NODE_ALL_SYNC_REQUESTS_TO_JOIN",
|
||||
}
|
||||
CommunityPrivilegedUserSyncMessage_EventType_value = map[string]int32{
|
||||
"UNKNOWN": 0,
|
||||
"CONTROL_NODE_ACCEPT_REQUEST_TO_JOIN": 1,
|
||||
"CONTROL_NODE_REJECT_REQUEST_TO_JOIN": 2,
|
||||
"CONTROL_NODE_ALL_SYNC_REQUESTS_TO_JOIN": 3,
|
||||
}
|
||||
)
|
||||
|
||||
var CommunityPrivilegedUserSyncMessage_EventType_value = map[string]int32{
|
||||
"UNKNOWN": 0,
|
||||
"CONTROL_NODE_ACCEPT_REQUEST_TO_JOIN": 1,
|
||||
"CONTROL_NODE_REJECT_REQUEST_TO_JOIN": 2,
|
||||
"CONTROL_NODE_ALL_SYNC_REQUESTS_TO_JOIN": 3,
|
||||
func (x CommunityPrivilegedUserSyncMessage_EventType) Enum() *CommunityPrivilegedUserSyncMessage_EventType {
|
||||
p := new(CommunityPrivilegedUserSyncMessage_EventType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x CommunityPrivilegedUserSyncMessage_EventType) String() string {
|
||||
return proto.EnumName(CommunityPrivilegedUserSyncMessage_EventType_name, int32(x))
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (CommunityPrivilegedUserSyncMessage_EventType) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_community_privileged_user_sync_message_proto_enumTypes[0].Descriptor()
|
||||
}
|
||||
|
||||
func (CommunityPrivilegedUserSyncMessage_EventType) Type() protoreflect.EnumType {
|
||||
return &file_community_privileged_user_sync_message_proto_enumTypes[0]
|
||||
}
|
||||
|
||||
func (x CommunityPrivilegedUserSyncMessage_EventType) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CommunityPrivilegedUserSyncMessage_EventType.Descriptor instead.
|
||||
func (CommunityPrivilegedUserSyncMessage_EventType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_158595055b4cfee2, []int{0, 0}
|
||||
return file_community_privileged_user_sync_message_proto_rawDescGZIP(), []int{0, 0}
|
||||
}
|
||||
|
||||
type CommunityPrivilegedUserSyncMessage struct {
|
||||
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
|
||||
Type CommunityPrivilegedUserSyncMessage_EventType `protobuf:"varint,2,opt,name=type,proto3,enum=protobuf.CommunityPrivilegedUserSyncMessage_EventType" json:"type,omitempty"`
|
||||
CommunityId []byte `protobuf:"bytes,3,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"`
|
||||
RequestToJoin map[string]*CommunityRequestToJoin `protobuf:"bytes,4,rep,name=request_to_join,json=requestToJoin,proto3" json:"request_to_join,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
SyncRequestsToJoin []*SyncCommunityRequestsToJoin `protobuf:"bytes,5,rep,name=sync_requests_to_join,json=syncRequestsToJoin,proto3" json:"sync_requests_to_join,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
|
||||
Type CommunityPrivilegedUserSyncMessage_EventType `protobuf:"varint,2,opt,name=type,proto3,enum=protobuf.CommunityPrivilegedUserSyncMessage_EventType" json:"type,omitempty"`
|
||||
CommunityId []byte `protobuf:"bytes,3,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"`
|
||||
RequestToJoin map[string]*CommunityRequestToJoin `protobuf:"bytes,4,rep,name=request_to_join,json=requestToJoin,proto3" json:"request_to_join,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
SyncRequestsToJoin []*SyncCommunityRequestsToJoin `protobuf:"bytes,5,rep,name=sync_requests_to_join,json=syncRequestsToJoin,proto3" json:"sync_requests_to_join,omitempty"`
|
||||
}
|
||||
|
||||
func (m *CommunityPrivilegedUserSyncMessage) Reset() { *m = CommunityPrivilegedUserSyncMessage{} }
|
||||
func (m *CommunityPrivilegedUserSyncMessage) String() string { return proto.CompactTextString(m) }
|
||||
func (*CommunityPrivilegedUserSyncMessage) ProtoMessage() {}
|
||||
func (x *CommunityPrivilegedUserSyncMessage) Reset() {
|
||||
*x = CommunityPrivilegedUserSyncMessage{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_community_privileged_user_sync_message_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *CommunityPrivilegedUserSyncMessage) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CommunityPrivilegedUserSyncMessage) ProtoMessage() {}
|
||||
|
||||
func (x *CommunityPrivilegedUserSyncMessage) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_community_privileged_user_sync_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 CommunityPrivilegedUserSyncMessage.ProtoReflect.Descriptor instead.
|
||||
func (*CommunityPrivilegedUserSyncMessage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_158595055b4cfee2, []int{0}
|
||||
return file_community_privileged_user_sync_message_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (m *CommunityPrivilegedUserSyncMessage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CommunityPrivilegedUserSyncMessage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CommunityPrivilegedUserSyncMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CommunityPrivilegedUserSyncMessage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *CommunityPrivilegedUserSyncMessage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CommunityPrivilegedUserSyncMessage.Merge(m, src)
|
||||
}
|
||||
func (m *CommunityPrivilegedUserSyncMessage) XXX_Size() int {
|
||||
return xxx_messageInfo_CommunityPrivilegedUserSyncMessage.Size(m)
|
||||
}
|
||||
func (m *CommunityPrivilegedUserSyncMessage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CommunityPrivilegedUserSyncMessage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CommunityPrivilegedUserSyncMessage proto.InternalMessageInfo
|
||||
|
||||
func (m *CommunityPrivilegedUserSyncMessage) GetClock() uint64 {
|
||||
if m != nil {
|
||||
return m.Clock
|
||||
func (x *CommunityPrivilegedUserSyncMessage) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *CommunityPrivilegedUserSyncMessage) GetType() CommunityPrivilegedUserSyncMessage_EventType {
|
||||
if m != nil {
|
||||
return m.Type
|
||||
func (x *CommunityPrivilegedUserSyncMessage) GetType() CommunityPrivilegedUserSyncMessage_EventType {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return CommunityPrivilegedUserSyncMessage_UNKNOWN
|
||||
}
|
||||
|
||||
func (m *CommunityPrivilegedUserSyncMessage) GetCommunityId() []byte {
|
||||
if m != nil {
|
||||
return m.CommunityId
|
||||
func (x *CommunityPrivilegedUserSyncMessage) GetCommunityId() []byte {
|
||||
if x != nil {
|
||||
return x.CommunityId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CommunityPrivilegedUserSyncMessage) GetRequestToJoin() map[string]*CommunityRequestToJoin {
|
||||
if m != nil {
|
||||
return m.RequestToJoin
|
||||
func (x *CommunityPrivilegedUserSyncMessage) GetRequestToJoin() map[string]*CommunityRequestToJoin {
|
||||
if x != nil {
|
||||
return x.RequestToJoin
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CommunityPrivilegedUserSyncMessage) GetSyncRequestsToJoin() []*SyncCommunityRequestsToJoin {
|
||||
if m != nil {
|
||||
return m.SyncRequestsToJoin
|
||||
func (x *CommunityPrivilegedUserSyncMessage) GetSyncRequestsToJoin() []*SyncCommunityRequestsToJoin {
|
||||
if x != nil {
|
||||
return x.SyncRequestsToJoin
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("protobuf.CommunityPrivilegedUserSyncMessage_EventType", CommunityPrivilegedUserSyncMessage_EventType_name, CommunityPrivilegedUserSyncMessage_EventType_value)
|
||||
proto.RegisterType((*CommunityPrivilegedUserSyncMessage)(nil), "protobuf.CommunityPrivilegedUserSyncMessage")
|
||||
proto.RegisterMapType((map[string]*CommunityRequestToJoin)(nil), "protobuf.CommunityPrivilegedUserSyncMessage.RequestToJoinEntry")
|
||||
var File_community_privileged_user_sync_message_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_community_privileged_user_sync_message_proto_rawDesc = []byte{
|
||||
0x0a, 0x2c, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x69, 0x76,
|
||||
0x69, 0x6c, 0x65, 0x67, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x79, 0x6e, 0x63,
|
||||
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, 0x11, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e,
|
||||
0x69, 0x74, 0x69, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x70, 0x61, 0x69,
|
||||
0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe9, 0x04, 0x0a, 0x22, 0x43,
|
||||
0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67,
|
||||
0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x53, 0x79, 0x6e, 0x63, 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, 0x4a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
|
||||
0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c,
|
||||
0x65, 0x67, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x53, 0x79, 0x6e, 0x63, 0x4d, 0x65, 0x73, 0x73,
|
||||
0x61, 0x67, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74,
|
||||
0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79,
|
||||
0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75,
|
||||
0x6e, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x67, 0x0a, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x6a, 0x6f, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||
0x3f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75,
|
||||
0x6e, 0x69, 0x74, 0x79, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x64, 0x55, 0x73,
|
||||
0x65, 0x72, 0x53, 0x79, 0x6e, 0x63, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x6f, 0x4a, 0x6f, 0x69, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79,
|
||||
0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x6f, 0x4a, 0x6f, 0x69, 0x6e, 0x12,
|
||||
0x58, 0x0a, 0x15, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73,
|
||||
0x5f, 0x74, 0x6f, 0x5f, 0x6a, 0x6f, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x43, 0x6f,
|
||||
0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x54,
|
||||
0x6f, 0x4a, 0x6f, 0x69, 0x6e, 0x52, 0x12, 0x73, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x73, 0x54, 0x6f, 0x4a, 0x6f, 0x69, 0x6e, 0x1a, 0x62, 0x0a, 0x12, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 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, 0x96, 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, 0x27, 0x0a, 0x23, 0x43, 0x4f, 0x4e, 0x54,
|
||||
0x52, 0x4f, 0x4c, 0x5f, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x5f,
|
||||
0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x54, 0x4f, 0x5f, 0x4a, 0x4f, 0x49, 0x4e, 0x10,
|
||||
0x01, 0x12, 0x27, 0x0a, 0x23, 0x43, 0x4f, 0x4e, 0x54, 0x52, 0x4f, 0x4c, 0x5f, 0x4e, 0x4f, 0x44,
|
||||
0x45, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54,
|
||||
0x5f, 0x54, 0x4f, 0x5f, 0x4a, 0x4f, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x2a, 0x0a, 0x26, 0x43, 0x4f,
|
||||
0x4e, 0x54, 0x52, 0x4f, 0x4c, 0x5f, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x41, 0x4c, 0x4c, 0x5f, 0x53,
|
||||
0x59, 0x4e, 0x43, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x53, 0x5f, 0x54, 0x4f, 0x5f,
|
||||
0x4a, 0x4f, 0x49, 0x4e, 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.RegisterFile("community_privileged_user_sync_message.proto", fileDescriptor_158595055b4cfee2)
|
||||
var (
|
||||
file_community_privileged_user_sync_message_proto_rawDescOnce sync.Once
|
||||
file_community_privileged_user_sync_message_proto_rawDescData = file_community_privileged_user_sync_message_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_community_privileged_user_sync_message_proto_rawDescGZIP() []byte {
|
||||
file_community_privileged_user_sync_message_proto_rawDescOnce.Do(func() {
|
||||
file_community_privileged_user_sync_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_community_privileged_user_sync_message_proto_rawDescData)
|
||||
})
|
||||
return file_community_privileged_user_sync_message_proto_rawDescData
|
||||
}
|
||||
|
||||
var fileDescriptor_158595055b4cfee2 = []byte{
|
||||
// 407 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x90, 0x5f, 0xab, 0xd3, 0x30,
|
||||
0x18, 0xc6, 0xed, 0xda, 0xa9, 0x27, 0x3d, 0xd3, 0x19, 0x14, 0xca, 0xae, 0xea, 0x44, 0x2d, 0x22,
|
||||
0x15, 0x26, 0x1c, 0x44, 0x2f, 0x44, 0x6b, 0x2e, 0x4e, 0x9d, 0xed, 0x31, 0xed, 0xf0, 0xcf, 0x4d,
|
||||
0xd8, 0xba, 0x58, 0xe2, 0xb6, 0xa4, 0x26, 0xed, 0xa0, 0x5f, 0xc4, 0xef, 0xe8, 0xb7, 0x90, 0x35,
|
||||
0x6b, 0xe7, 0x98, 0x20, 0x5e, 0xf5, 0x7d, 0x9f, 0x3e, 0xf9, 0x3d, 0xbc, 0x0f, 0x78, 0x9a, 0x89,
|
||||
0xcd, 0xa6, 0xe2, 0xac, 0xac, 0x49, 0x21, 0xd9, 0x96, 0xad, 0x69, 0x4e, 0x97, 0xa4, 0x52, 0x54,
|
||||
0x12, 0x55, 0xf3, 0x8c, 0x6c, 0xa8, 0x52, 0xf3, 0x9c, 0xfa, 0x85, 0x14, 0xa5, 0x80, 0x37, 0x9b,
|
||||
0xcf, 0xa2, 0xfa, 0x36, 0xba, 0xd3, 0xbe, 0x63, 0x54, 0xe9, 0x9f, 0xa3, 0x41, 0x31, 0x67, 0x92,
|
||||
0xf1, 0x5c, 0xaf, 0xe3, 0x5f, 0x16, 0x18, 0x07, 0x2d, 0xfc, 0xaa, 0x63, 0xcf, 0x14, 0x95, 0x49,
|
||||
0xcd, 0xb3, 0x0f, 0x1a, 0x0c, 0xef, 0x82, 0x7e, 0xb6, 0x16, 0xd9, 0xca, 0x31, 0x5c, 0xc3, 0xb3,
|
||||
0xb0, 0x5e, 0x60, 0x08, 0xac, 0xb2, 0x2e, 0xa8, 0xd3, 0x73, 0x0d, 0xef, 0xd6, 0xe4, 0xc2, 0x6f,
|
||||
0x73, 0xfd, 0x7f, 0x13, 0x7d, 0xb4, 0xa5, 0xbc, 0x4c, 0xeb, 0x82, 0xe2, 0x86, 0x01, 0xef, 0x83,
|
||||
0xf3, 0xc3, 0x91, 0x6c, 0xe9, 0x98, 0xae, 0xe1, 0x9d, 0x63, 0xbb, 0xd3, 0x2e, 0x97, 0x30, 0x07,
|
||||
0xb7, 0x25, 0xfd, 0x51, 0x51, 0x55, 0x92, 0x52, 0x90, 0xef, 0x82, 0x71, 0xc7, 0x72, 0x4d, 0xcf,
|
||||
0x9e, 0xbc, 0xfe, 0xaf, 0x64, 0xac, 0x19, 0xa9, 0x08, 0x05, 0xe3, 0x88, 0x97, 0xb2, 0xc6, 0x03,
|
||||
0xf9, 0xa7, 0x06, 0x3f, 0x83, 0x7b, 0x4d, 0xad, 0x7b, 0x55, 0x75, 0x71, 0xfd, 0x26, 0xee, 0xe1,
|
||||
0x21, 0x6e, 0xc7, 0xed, 0x22, 0xf7, 0x60, 0xa5, 0x29, 0x18, 0xee, 0x18, 0xc7, 0xda, 0x68, 0x01,
|
||||
0xe0, 0x69, 0x3c, 0x1c, 0x02, 0x73, 0x45, 0xeb, 0xa6, 0xdb, 0x33, 0xbc, 0x1b, 0xe1, 0x05, 0xe8,
|
||||
0x6f, 0xe7, 0xeb, 0x4a, 0x57, 0x6b, 0x4f, 0xdc, 0xbf, 0x1c, 0x78, 0xc4, 0xc1, 0xda, 0xfe, 0xb2,
|
||||
0xf7, 0xc2, 0x18, 0xff, 0x34, 0xc0, 0x59, 0xd7, 0x2e, 0xb4, 0xc1, 0x8d, 0x59, 0xf4, 0x3e, 0x8a,
|
||||
0x3f, 0x45, 0xc3, 0x6b, 0xf0, 0x31, 0x78, 0x10, 0xc4, 0x51, 0x8a, 0xe3, 0x29, 0x89, 0xe2, 0x77,
|
||||
0x88, 0xbc, 0x09, 0x02, 0x74, 0x95, 0x12, 0x8c, 0x3e, 0xce, 0x50, 0x92, 0x92, 0x34, 0x26, 0x61,
|
||||
0x7c, 0x19, 0x0d, 0x8d, 0x13, 0x23, 0x46, 0x21, 0x0a, 0x4e, 0x8d, 0x3d, 0xf8, 0x04, 0x3c, 0x3a,
|
||||
0x26, 0x4e, 0xa7, 0x24, 0xf9, 0x12, 0x05, 0xad, 0x35, 0xe9, 0xbc, 0xe6, 0xdb, 0xc1, 0x57, 0xdb,
|
||||
0x7f, 0xf6, 0xaa, 0xbd, 0x64, 0x71, 0xbd, 0x99, 0x9e, 0xff, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x83,
|
||||
0x24, 0x18, 0xbe, 0xdd, 0x02, 0x00, 0x00,
|
||||
var file_community_privileged_user_sync_message_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_community_privileged_user_sync_message_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_community_privileged_user_sync_message_proto_goTypes = []interface{}{
|
||||
(CommunityPrivilegedUserSyncMessage_EventType)(0), // 0: protobuf.CommunityPrivilegedUserSyncMessage.EventType
|
||||
(*CommunityPrivilegedUserSyncMessage)(nil), // 1: protobuf.CommunityPrivilegedUserSyncMessage
|
||||
nil, // 2: protobuf.CommunityPrivilegedUserSyncMessage.RequestToJoinEntry
|
||||
(*SyncCommunityRequestsToJoin)(nil), // 3: protobuf.SyncCommunityRequestsToJoin
|
||||
(*CommunityRequestToJoin)(nil), // 4: protobuf.CommunityRequestToJoin
|
||||
}
|
||||
var file_community_privileged_user_sync_message_proto_depIdxs = []int32{
|
||||
0, // 0: protobuf.CommunityPrivilegedUserSyncMessage.type:type_name -> protobuf.CommunityPrivilegedUserSyncMessage.EventType
|
||||
2, // 1: protobuf.CommunityPrivilegedUserSyncMessage.request_to_join:type_name -> protobuf.CommunityPrivilegedUserSyncMessage.RequestToJoinEntry
|
||||
3, // 2: protobuf.CommunityPrivilegedUserSyncMessage.sync_requests_to_join:type_name -> protobuf.SyncCommunityRequestsToJoin
|
||||
4, // 3: protobuf.CommunityPrivilegedUserSyncMessage.RequestToJoinEntry.value:type_name -> protobuf.CommunityRequestToJoin
|
||||
4, // [4:4] is the sub-list for method output_type
|
||||
4, // [4:4] is the sub-list for method input_type
|
||||
4, // [4:4] is the sub-list for extension type_name
|
||||
4, // [4:4] is the sub-list for extension extendee
|
||||
0, // [0:4] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_community_privileged_user_sync_message_proto_init() }
|
||||
func file_community_privileged_user_sync_message_proto_init() {
|
||||
if File_community_privileged_user_sync_message_proto != nil {
|
||||
return
|
||||
}
|
||||
file_communities_proto_init()
|
||||
file_pairing_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_community_privileged_user_sync_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CommunityPrivilegedUserSyncMessage); 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_privileged_user_sync_message_proto_rawDesc,
|
||||
NumEnums: 1,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_community_privileged_user_sync_message_proto_goTypes,
|
||||
DependencyIndexes: file_community_privileged_user_sync_message_proto_depIdxs,
|
||||
EnumInfos: file_community_privileged_user_sync_message_proto_enumTypes,
|
||||
MessageInfos: file_community_privileged_user_sync_message_proto_msgTypes,
|
||||
}.Build()
|
||||
File_community_privileged_user_sync_message_proto = out.File
|
||||
file_community_privileged_user_sync_message_proto_rawDesc = nil
|
||||
file_community_privileged_user_sync_message_proto_goTypes = nil
|
||||
file_community_privileged_user_sync_message_proto_depIdxs = nil
|
||||
}
|
||||
|
|
|
@ -1,107 +1,177 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.24.3
|
||||
// source: community_shard_key.proto
|
||||
|
||||
package protobuf
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// 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
|
||||
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)
|
||||
)
|
||||
|
||||
type CommunityShardKey struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *CommunityShardKey) Reset() { *m = CommunityShardKey{} }
|
||||
func (m *CommunityShardKey) String() string { return proto.CompactTextString(m) }
|
||||
func (*CommunityShardKey) ProtoMessage() {}
|
||||
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 (*CommunityShardKey) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_03da8310cde9b7b2, []int{0}
|
||||
return file_community_shard_key_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *CommunityShardKey) GetCommunityId() []byte {
|
||||
if x != nil {
|
||||
return x.CommunityId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CommunityShardKey) GetPrivateKey() []byte {
|
||||
if m != nil {
|
||||
return m.PrivateKey
|
||||
func (x *CommunityShardKey) GetPrivateKey() []byte {
|
||||
if x != nil {
|
||||
return x.PrivateKey
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CommunityShardKey) GetClock() uint64 {
|
||||
if m != nil {
|
||||
return m.Clock
|
||||
func (x *CommunityShardKey) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *CommunityShardKey) GetShard() *Shard {
|
||||
if m != nil {
|
||||
return m.Shard
|
||||
func (x *CommunityShardKey) GetShard() *Shard {
|
||||
if x != nil {
|
||||
return x.Shard
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*CommunityShardKey)(nil), "protobuf.CommunityShardKey")
|
||||
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.RegisterFile("community_shard_key.proto", fileDescriptor_03da8310cde9b7b2)
|
||||
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
|
||||
}
|
||||
|
||||
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,
|
||||
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
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,89 +1,101 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.24.3
|
||||
// source: contact.proto
|
||||
|
||||
package protobuf
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// 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
|
||||
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)
|
||||
)
|
||||
|
||||
type ContactRequestPropagatedState struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *ContactRequestPropagatedState) Reset() { *m = ContactRequestPropagatedState{} }
|
||||
func (m *ContactRequestPropagatedState) String() string { return proto.CompactTextString(m) }
|
||||
func (*ContactRequestPropagatedState) ProtoMessage() {}
|
||||
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 (*ContactRequestPropagatedState) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_a5036fff2565fb15, []int{0}
|
||||
return file_contact_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *ContactRequestPropagatedState) GetLocalClock() uint64 {
|
||||
if x != nil {
|
||||
return x.LocalClock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ContactRequestPropagatedState) GetLocalState() uint64 {
|
||||
if m != nil {
|
||||
return m.LocalState
|
||||
func (x *ContactRequestPropagatedState) GetLocalState() uint64 {
|
||||
if x != nil {
|
||||
return x.LocalState
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ContactRequestPropagatedState) GetRemoteClock() uint64 {
|
||||
if m != nil {
|
||||
return m.RemoteClock
|
||||
func (x *ContactRequestPropagatedState) GetRemoteClock() uint64 {
|
||||
if x != nil {
|
||||
return x.RemoteClock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ContactRequestPropagatedState) GetRemoteState() uint64 {
|
||||
if m != nil {
|
||||
return m.RemoteState
|
||||
func (x *ContactRequestPropagatedState) GetRemoteState() uint64 {
|
||||
if x != nil {
|
||||
return x.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"`
|
||||
|
@ -91,212 +103,346 @@ 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 (m *ContactUpdate) Reset() { *m = ContactUpdate{} }
|
||||
func (m *ContactUpdate) String() string { return proto.CompactTextString(m) }
|
||||
func (*ContactUpdate) ProtoMessage() {}
|
||||
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 (*ContactUpdate) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_a5036fff2565fb15, []int{1}
|
||||
return file_contact_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *ContactUpdate) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ContactUpdate) GetEnsName() string {
|
||||
if m != nil {
|
||||
return m.EnsName
|
||||
func (x *ContactUpdate) GetEnsName() string {
|
||||
if x != nil {
|
||||
return x.EnsName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ContactUpdate) GetProfileImage() string {
|
||||
if m != nil {
|
||||
return m.ProfileImage
|
||||
func (x *ContactUpdate) GetProfileImage() string {
|
||||
if x != nil {
|
||||
return x.ProfileImage
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ContactUpdate) GetDisplayName() string {
|
||||
if m != nil {
|
||||
return m.DisplayName
|
||||
func (x *ContactUpdate) GetDisplayName() string {
|
||||
if x != nil {
|
||||
return x.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ContactUpdate) GetContactRequestClock() uint64 {
|
||||
if m != nil {
|
||||
return m.ContactRequestClock
|
||||
func (x *ContactUpdate) GetContactRequestClock() uint64 {
|
||||
if x != nil {
|
||||
return x.ContactRequestClock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ContactUpdate) GetContactRequestPropagatedState() *ContactRequestPropagatedState {
|
||||
if m != nil {
|
||||
return m.ContactRequestPropagatedState
|
||||
func (x *ContactUpdate) GetContactRequestPropagatedState() *ContactRequestPropagatedState {
|
||||
if x != nil {
|
||||
return x.ContactRequestPropagatedState
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ContactUpdate) GetPublicKey() string {
|
||||
if m != nil {
|
||||
return m.PublicKey
|
||||
func (x *ContactUpdate) GetPublicKey() string {
|
||||
if x != nil {
|
||||
return x.PublicKey
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type AcceptContactRequest struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *AcceptContactRequest) Reset() { *m = AcceptContactRequest{} }
|
||||
func (m *AcceptContactRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*AcceptContactRequest) ProtoMessage() {}
|
||||
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 (*AcceptContactRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_a5036fff2565fb15, []int{2}
|
||||
return file_contact_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *AcceptContactRequest) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AcceptContactRequest) GetClock() uint64 {
|
||||
if m != nil {
|
||||
return m.Clock
|
||||
func (x *AcceptContactRequest) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type RetractContactRequest struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *RetractContactRequest) Reset() { *m = RetractContactRequest{} }
|
||||
func (m *RetractContactRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*RetractContactRequest) ProtoMessage() {}
|
||||
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 (*RetractContactRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_a5036fff2565fb15, []int{3}
|
||||
return file_contact_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *RetractContactRequest) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *RetractContactRequest) GetClock() uint64 {
|
||||
if m != nil {
|
||||
return m.Clock
|
||||
func (x *RetractContactRequest) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
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 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.RegisterFile("contact.proto", fileDescriptor_a5036fff2565fb15)
|
||||
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
|
||||
}
|
||||
|
||||
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,
|
||||
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
|
||||
}
|
||||
|
|
|
@ -1,245 +1,380 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.24.3
|
||||
// source: contact_verification.proto
|
||||
|
||||
package protobuf
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// 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
|
||||
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)
|
||||
)
|
||||
|
||||
type RequestContactVerification struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *RequestContactVerification) Reset() { *m = RequestContactVerification{} }
|
||||
func (m *RequestContactVerification) String() string { return proto.CompactTextString(m) }
|
||||
func (*RequestContactVerification) ProtoMessage() {}
|
||||
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 (*RequestContactVerification) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_d6997df64de39454, []int{0}
|
||||
return file_contact_verification_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *RequestContactVerification) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *RequestContactVerification) GetChallenge() string {
|
||||
if m != nil {
|
||||
return m.Challenge
|
||||
func (x *RequestContactVerification) GetChallenge() string {
|
||||
if x != nil {
|
||||
return x.Challenge
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type AcceptContactVerification struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *AcceptContactVerification) Reset() { *m = AcceptContactVerification{} }
|
||||
func (m *AcceptContactVerification) String() string { return proto.CompactTextString(m) }
|
||||
func (*AcceptContactVerification) ProtoMessage() {}
|
||||
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 (*AcceptContactVerification) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_d6997df64de39454, []int{1}
|
||||
return file_contact_verification_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *AcceptContactVerification) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *AcceptContactVerification) GetId() string {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
func (x *AcceptContactVerification) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AcceptContactVerification) GetResponse() string {
|
||||
if m != nil {
|
||||
return m.Response
|
||||
func (x *AcceptContactVerification) GetResponse() string {
|
||||
if x != nil {
|
||||
return x.Response
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type DeclineContactVerification struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *DeclineContactVerification) Reset() { *m = DeclineContactVerification{} }
|
||||
func (m *DeclineContactVerification) String() string { return proto.CompactTextString(m) }
|
||||
func (*DeclineContactVerification) ProtoMessage() {}
|
||||
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 (*DeclineContactVerification) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_d6997df64de39454, []int{2}
|
||||
return file_contact_verification_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *DeclineContactVerification) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *DeclineContactVerification) GetId() string {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
func (x *DeclineContactVerification) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type CancelContactVerification struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *CancelContactVerification) Reset() { *m = CancelContactVerification{} }
|
||||
func (m *CancelContactVerification) String() string { return proto.CompactTextString(m) }
|
||||
func (*CancelContactVerification) ProtoMessage() {}
|
||||
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 (*CancelContactVerification) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_d6997df64de39454, []int{3}
|
||||
return file_contact_verification_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *CancelContactVerification) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *CancelContactVerification) GetId() string {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
func (x *CancelContactVerification) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
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 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.RegisterFile("contact_verification.proto", fileDescriptor_d6997df64de39454)
|
||||
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
|
||||
}
|
||||
|
||||
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,
|
||||
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
|
||||
}
|
||||
|
|
|
@ -1,24 +1,24 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.24.3
|
||||
// source: emoji_reaction.proto
|
||||
|
||||
package protobuf
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// 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
|
||||
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)
|
||||
)
|
||||
|
||||
type EmojiReaction_Type int32
|
||||
|
||||
|
@ -32,35 +32,60 @@ const (
|
|||
EmojiReaction_ANGRY EmojiReaction_Type = 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",
|
||||
}
|
||||
// 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_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) Enum() *EmojiReaction_Type {
|
||||
p := new(EmojiReaction_Type)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x EmojiReaction_Type) String() string {
|
||||
return proto.EnumName(EmojiReaction_Type_name, int32(x))
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(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 fileDescriptor_0a088c907bbc7ed6, []int{0, 0}
|
||||
return file_emoji_reaction_proto_rawDescGZIP(), []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
|
||||
|
@ -75,116 +100,189 @@ 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
|
||||
Grant []byte `protobuf:"bytes,7,opt,name=grant,proto3" json:"grant,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Grant []byte `protobuf:"bytes,7,opt,name=grant,proto3" json:"grant,omitempty"`
|
||||
}
|
||||
|
||||
func (m *EmojiReaction) Reset() { *m = EmojiReaction{} }
|
||||
func (m *EmojiReaction) String() string { return proto.CompactTextString(m) }
|
||||
func (*EmojiReaction) ProtoMessage() {}
|
||||
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 (*EmojiReaction) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_0a088c907bbc7ed6, []int{0}
|
||||
return file_emoji_reaction_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *EmojiReaction) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *EmojiReaction) GetChatId() string {
|
||||
if m != nil {
|
||||
return m.ChatId
|
||||
func (x *EmojiReaction) GetChatId() string {
|
||||
if x != nil {
|
||||
return x.ChatId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *EmojiReaction) GetMessageId() string {
|
||||
if m != nil {
|
||||
return m.MessageId
|
||||
func (x *EmojiReaction) GetMessageId() string {
|
||||
if x != nil {
|
||||
return x.MessageId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *EmojiReaction) GetMessageType() MessageType {
|
||||
if m != nil {
|
||||
return m.MessageType
|
||||
func (x *EmojiReaction) GetMessageType() MessageType {
|
||||
if x != nil {
|
||||
return x.MessageType
|
||||
}
|
||||
return MessageType_UNKNOWN_MESSAGE_TYPE
|
||||
}
|
||||
|
||||
func (m *EmojiReaction) GetType() EmojiReaction_Type {
|
||||
if m != nil {
|
||||
return m.Type
|
||||
func (x *EmojiReaction) GetType() EmojiReaction_Type {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return EmojiReaction_UNKNOWN_EMOJI_REACTION_TYPE
|
||||
}
|
||||
|
||||
func (m *EmojiReaction) GetRetracted() bool {
|
||||
if m != nil {
|
||||
return m.Retracted
|
||||
func (x *EmojiReaction) GetRetracted() bool {
|
||||
if x != nil {
|
||||
return x.Retracted
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *EmojiReaction) GetGrant() []byte {
|
||||
if m != nil {
|
||||
return m.Grant
|
||||
func (x *EmojiReaction) GetGrant() []byte {
|
||||
if x != nil {
|
||||
return x.Grant
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("protobuf.EmojiReaction_Type", EmojiReaction_Type_name, EmojiReaction_Type_value)
|
||||
proto.RegisterType((*EmojiReaction)(nil), "protobuf.EmojiReaction")
|
||||
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, 0xef, 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, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74,
|
||||
0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 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.RegisterFile("emoji_reaction.proto", fileDescriptor_0a088c907bbc7ed6)
|
||||
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
|
||||
}
|
||||
|
||||
var fileDescriptor_0a088c907bbc7ed6 = []byte{
|
||||
// 330 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0xcd, 0x6e, 0xaa, 0x40,
|
||||
0x14, 0xc7, 0x2f, 0x0a, 0x28, 0x07, 0xbd, 0x77, 0x32, 0xf1, 0xa6, 0xa4, 0xb5, 0x29, 0x71, 0xc5,
|
||||
0x8a, 0x36, 0xed, 0xa6, 0x49, 0x57, 0x58, 0x89, 0xd2, 0x2a, 0x98, 0x11, 0x6a, 0xec, 0x86, 0x20,
|
||||
0x4c, 0xad, 0x6d, 0x11, 0x82, 0xe3, 0xc2, 0xa7, 0xee, 0x2b, 0x34, 0x0c, 0x1a, 0xd3, 0xd5, 0xcc,
|
||||
0xef, 0xff, 0x91, 0x73, 0x0e, 0x74, 0x68, 0x9a, 0x7d, 0xac, 0xc3, 0x82, 0x46, 0x31, 0x5b, 0x67,
|
||||
0x1b, 0x33, 0x2f, 0x32, 0x96, 0xe1, 0x26, 0x7f, 0x96, 0xbb, 0xb7, 0x73, 0x95, 0x6e, 0x76, 0xe9,
|
||||
0xb6, 0x92, 0x7b, 0xdf, 0x35, 0x68, 0xdb, 0x65, 0x9e, 0x1c, 0xe2, 0xb8, 0x03, 0x52, 0xfc, 0x95,
|
||||
0xc5, 0x9f, 0x9a, 0xa0, 0x0b, 0x86, 0x48, 0x2a, 0xc0, 0x67, 0xd0, 0x88, 0xdf, 0x23, 0x16, 0xae,
|
||||
0x13, 0xad, 0xa6, 0x0b, 0x86, 0x42, 0xe4, 0x12, 0x9d, 0x04, 0x5f, 0x02, 0xa4, 0x74, 0xbb, 0x8d,
|
||||
0x56, 0xb4, 0xf4, 0xea, 0xdc, 0x53, 0x0e, 0x8a, 0x93, 0xe0, 0x7b, 0x68, 0x1d, 0x6d, 0xb6, 0xcf,
|
||||
0xa9, 0x26, 0xea, 0x82, 0xf1, 0xf7, 0xf6, 0xbf, 0x79, 0xdc, 0xc6, 0x9c, 0x54, 0xae, 0xbf, 0xcf,
|
||||
0x29, 0x51, 0xd3, 0x13, 0xe0, 0x1b, 0x10, 0x79, 0x43, 0xe2, 0x8d, 0xee, 0xa9, 0xf1, 0x6b, 0x5d,
|
||||
0x93, 0x17, 0x79, 0x12, 0x77, 0x41, 0x29, 0x28, 0x2b, 0xa2, 0x98, 0xd1, 0x44, 0x93, 0x75, 0xc1,
|
||||
0x68, 0x92, 0x93, 0x50, 0xde, 0xb5, 0x2a, 0xa2, 0x0d, 0xd3, 0x1a, 0xba, 0x60, 0xb4, 0x48, 0x05,
|
||||
0xbd, 0x1c, 0x44, 0x3e, 0xed, 0x0a, 0x2e, 0x02, 0xf7, 0xd9, 0xf5, 0xe6, 0x6e, 0x68, 0x4f, 0xbc,
|
||||
0x27, 0x27, 0x24, 0xb6, 0xf5, 0xe8, 0x3b, 0x9e, 0x1b, 0xfa, 0x8b, 0xa9, 0x8d, 0xfe, 0xe0, 0x26,
|
||||
0x88, 0x63, 0xef, 0xc5, 0x46, 0x02, 0x6e, 0x83, 0xe2, 0x8f, 0x82, 0x49, 0x7f, 0x16, 0x06, 0x53,
|
||||
0x54, 0xc3, 0xff, 0x40, 0x3d, 0xe0, 0xc0, 0x9b, 0xbb, 0xa8, 0x8e, 0x15, 0x90, 0xc6, 0x56, 0x30,
|
||||
0x1c, 0x21, 0x11, 0x37, 0xa0, 0x3e, 0xb3, 0x06, 0x48, 0x2a, 0x35, 0xcb, 0x1d, 0x92, 0x05, 0x92,
|
||||
0xfb, 0xed, 0x57, 0xd5, 0xbc, 0x7e, 0x38, 0x5e, 0xb3, 0x94, 0xf9, 0xef, 0xee, 0x27, 0x00, 0x00,
|
||||
0xff, 0xff, 0x7e, 0x57, 0x12, 0xd9, 0xb6, 0x01, 0x00, 0x00,
|
||||
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
|
||||
}
|
||||
|
|
|
@ -1,24 +1,24 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.24.3
|
||||
// source: enums.proto
|
||||
|
||||
package protobuf
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// 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
|
||||
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)
|
||||
)
|
||||
|
||||
type MessageType int32
|
||||
|
||||
|
@ -34,32 +34,53 @@ const (
|
|||
MessageType_SYSTEM_MESSAGE_GAP MessageType = 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",
|
||||
}
|
||||
// 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_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) Enum() *MessageType {
|
||||
p := new(MessageType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x MessageType) String() string {
|
||||
return proto.EnumName(MessageType_name, int32(x))
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(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 fileDescriptor_888b6bd9597961ff, []int{0}
|
||||
return file_enums_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
type ImageType int32
|
||||
|
@ -73,28 +94,49 @@ const (
|
|||
ImageType_GIF ImageType = 4
|
||||
)
|
||||
|
||||
var ImageType_name = map[int32]string{
|
||||
0: "UNKNOWN_IMAGE_TYPE",
|
||||
1: "PNG",
|
||||
2: "JPEG",
|
||||
3: "WEBP",
|
||||
4: "GIF",
|
||||
}
|
||||
// Enum value maps for ImageType.
|
||||
var (
|
||||
ImageType_name = map[int32]string{
|
||||
0: "UNKNOWN_IMAGE_TYPE",
|
||||
1: "PNG",
|
||||
2: "JPEG",
|
||||
3: "WEBP",
|
||||
4: "GIF",
|
||||
}
|
||||
ImageType_value = map[string]int32{
|
||||
"UNKNOWN_IMAGE_TYPE": 0,
|
||||
"PNG": 1,
|
||||
"JPEG": 2,
|
||||
"WEBP": 3,
|
||||
"GIF": 4,
|
||||
}
|
||||
)
|
||||
|
||||
var ImageType_value = map[string]int32{
|
||||
"UNKNOWN_IMAGE_TYPE": 0,
|
||||
"PNG": 1,
|
||||
"JPEG": 2,
|
||||
"WEBP": 3,
|
||||
"GIF": 4,
|
||||
func (x ImageType) Enum() *ImageType {
|
||||
p := new(ImageType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x ImageType) String() string {
|
||||
return proto.EnumName(ImageType_name, int32(x))
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (ImageType) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_enums_proto_enumTypes[1].Descriptor()
|
||||
}
|
||||
|
||||
func (ImageType) Type() protoreflect.EnumType {
|
||||
return &file_enums_proto_enumTypes[1]
|
||||
}
|
||||
|
||||
func (x ImageType) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ImageType.Descriptor instead.
|
||||
func (ImageType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_888b6bd9597961ff, []int{1}
|
||||
return file_enums_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
type CommunityTokenType int32
|
||||
|
@ -106,56 +148,125 @@ const (
|
|||
CommunityTokenType_ENS CommunityTokenType = 3
|
||||
)
|
||||
|
||||
var CommunityTokenType_name = map[int32]string{
|
||||
0: "UNKNOWN_TOKEN_TYPE",
|
||||
1: "ERC20",
|
||||
2: "ERC721",
|
||||
3: "ENS",
|
||||
}
|
||||
// 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_value = map[string]int32{
|
||||
"UNKNOWN_TOKEN_TYPE": 0,
|
||||
"ERC20": 1,
|
||||
"ERC721": 2,
|
||||
"ENS": 3,
|
||||
func (x CommunityTokenType) Enum() *CommunityTokenType {
|
||||
p := new(CommunityTokenType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x CommunityTokenType) String() string {
|
||||
return proto.EnumName(CommunityTokenType_name, int32(x))
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(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 fileDescriptor_888b6bd9597961ff, []int{2}
|
||||
return file_enums_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("protobuf.MessageType", MessageType_name, MessageType_value)
|
||||
proto.RegisterEnum("protobuf.ImageType", ImageType_name, ImageType_value)
|
||||
proto.RegisterEnum("protobuf.CommunityTokenType", CommunityTokenType_name, CommunityTokenType_value)
|
||||
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, 0x49, 0x0a, 0x09, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70,
|
||||
0x65, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x49, 0x4d, 0x41,
|
||||
0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 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.RegisterFile("enums.proto", fileDescriptor_888b6bd9597961ff)
|
||||
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
|
||||
}
|
||||
|
||||
var fileDescriptor_888b6bd9597961ff = []byte{
|
||||
// 286 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0x4d, 0x4f, 0xc2, 0x40,
|
||||
0x10, 0x86, 0x2d, 0xe5, 0x73, 0x10, 0x32, 0x4e, 0x0c, 0xf1, 0xe0, 0xc1, 0x33, 0x07, 0x54, 0x3c,
|
||||
0x78, 0xf0, 0x54, 0x9a, 0xb1, 0xae, 0xb0, 0x1f, 0x69, 0xb7, 0x12, 0xbc, 0x6c, 0x24, 0xa9, 0xc6,
|
||||
0x98, 0x52, 0x22, 0x70, 0xe0, 0x2f, 0xf9, 0x2b, 0x0d, 0xc4, 0x1a, 0xe5, 0x34, 0x6f, 0x26, 0x33,
|
||||
0x4f, 0x9e, 0xbc, 0xd0, 0xce, 0x16, 0x9b, 0x7c, 0x35, 0x58, 0x7e, 0x16, 0xeb, 0x82, 0x9a, 0xfb,
|
||||
0x31, 0xdf, 0xbc, 0xf6, 0xbf, 0x3c, 0x68, 0xcb, 0x6c, 0xb5, 0x7a, 0x79, 0xcb, 0xec, 0x76, 0x99,
|
||||
0xd1, 0x19, 0x9c, 0xa6, 0x6a, 0xac, 0xf4, 0x54, 0x39, 0xc9, 0x49, 0x12, 0x44, 0xec, 0xec, 0xcc,
|
||||
0x30, 0x1e, 0x51, 0x17, 0x40, 0x2b, 0x76, 0x56, 0x3b, 0xad, 0x18, 0x3d, 0x42, 0x38, 0x36, 0xe9,
|
||||
0x68, 0x22, 0x42, 0x17, 0xc5, 0x3a, 0x35, 0x58, 0xa1, 0x13, 0xe8, 0x98, 0x58, 0x3c, 0x05, 0x96,
|
||||
0x7f, 0x56, 0x3e, 0x5d, 0xc0, 0x79, 0x32, 0x4b, 0x2c, 0xcb, 0x5f, 0xda, 0xff, 0x8b, 0x2a, 0x11,
|
||||
0x74, 0x43, 0x2d, 0x65, 0xaa, 0x84, 0x9d, 0xb9, 0xf0, 0x21, 0xb0, 0x58, 0xa3, 0x1e, 0xd0, 0xc1,
|
||||
0x57, 0x14, 0x18, 0xac, 0xf7, 0x05, 0xb4, 0x44, 0x5e, 0x9a, 0xf6, 0x80, 0x4a, 0x53, 0x21, 0xff,
|
||||
0x78, 0x36, 0xc0, 0x37, 0x2a, 0x42, 0x8f, 0x9a, 0x50, 0x7d, 0x34, 0x1c, 0x61, 0x65, 0x97, 0xa6,
|
||||
0x3c, 0xda, 0xf9, 0x34, 0xc0, 0x8f, 0xc4, 0x3d, 0x56, 0xfb, 0x13, 0xa0, 0xb0, 0xc8, 0xf3, 0xcd,
|
||||
0xe2, 0x7d, 0xbd, 0xb5, 0xc5, 0x47, 0xb6, 0x38, 0x64, 0x5a, 0x3d, 0x66, 0x55, 0x32, 0x5b, 0x50,
|
||||
0xe3, 0x38, 0x1c, 0x5e, 0xa1, 0x47, 0x00, 0x75, 0x8e, 0xc3, 0xdb, 0xe1, 0x35, 0x56, 0x76, 0x34,
|
||||
0x56, 0x09, 0xfa, 0xa3, 0xce, 0x73, 0x7b, 0x70, 0x79, 0x57, 0x96, 0x3a, 0xaf, 0xef, 0xd3, 0xcd,
|
||||
0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x58, 0xd8, 0x58, 0xde, 0x74, 0x01, 0x00, 0x00,
|
||||
var file_enums_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
|
||||
var file_enums_proto_goTypes = []interface{}{
|
||||
(MessageType)(0), // 0: protobuf.MessageType
|
||||
(ImageType)(0), // 1: protobuf.ImageType
|
||||
(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
|
||||
}
|
||||
|
|
|
@ -1,24 +1,24 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.24.3
|
||||
// source: group_chat_invitation.proto
|
||||
|
||||
package protobuf
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// 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
|
||||
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)
|
||||
)
|
||||
|
||||
type GroupChatInvitation_State int32
|
||||
|
||||
|
@ -29,29 +29,54 @@ const (
|
|||
GroupChatInvitation_APPROVED GroupChatInvitation_State = 3
|
||||
)
|
||||
|
||||
var GroupChatInvitation_State_name = map[int32]string{
|
||||
0: "UNKNOWN",
|
||||
1: "REQUEST",
|
||||
2: "REJECTED",
|
||||
3: "APPROVED",
|
||||
}
|
||||
// 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_value = map[string]int32{
|
||||
"UNKNOWN": 0,
|
||||
"REQUEST": 1,
|
||||
"REJECTED": 2,
|
||||
"APPROVED": 3,
|
||||
func (x GroupChatInvitation_State) Enum() *GroupChatInvitation_State {
|
||||
p := new(GroupChatInvitation_State)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x GroupChatInvitation_State) String() string {
|
||||
return proto.EnumName(GroupChatInvitation_State_name, int32(x))
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(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 fileDescriptor_a6a73333de6a8ebe, []int{0, 0}
|
||||
return file_group_chat_invitation_proto_rawDescGZIP(), []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
|
||||
|
@ -59,90 +84,157 @@ 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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
State GroupChatInvitation_State `protobuf:"varint,4,opt,name=state,proto3,enum=protobuf.GroupChatInvitation_State" json:"state,omitempty"`
|
||||
}
|
||||
|
||||
func (m *GroupChatInvitation) Reset() { *m = GroupChatInvitation{} }
|
||||
func (m *GroupChatInvitation) String() string { return proto.CompactTextString(m) }
|
||||
func (*GroupChatInvitation) ProtoMessage() {}
|
||||
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 (*GroupChatInvitation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_a6a73333de6a8ebe, []int{0}
|
||||
return file_group_chat_invitation_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *GroupChatInvitation) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *GroupChatInvitation) GetChatId() string {
|
||||
if m != nil {
|
||||
return m.ChatId
|
||||
func (x *GroupChatInvitation) GetChatId() string {
|
||||
if x != nil {
|
||||
return x.ChatId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *GroupChatInvitation) GetIntroductionMessage() string {
|
||||
if m != nil {
|
||||
return m.IntroductionMessage
|
||||
func (x *GroupChatInvitation) GetIntroductionMessage() string {
|
||||
if x != nil {
|
||||
return x.IntroductionMessage
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *GroupChatInvitation) GetState() GroupChatInvitation_State {
|
||||
if m != nil {
|
||||
return m.State
|
||||
func (x *GroupChatInvitation) GetState() GroupChatInvitation_State {
|
||||
if x != nil {
|
||||
return x.State
|
||||
}
|
||||
return GroupChatInvitation_UNKNOWN
|
||||
}
|
||||
|
||||
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 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.RegisterFile("group_chat_invitation.proto", fileDescriptor_a6a73333de6a8ebe)
|
||||
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
|
||||
}
|
||||
|
||||
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,
|
||||
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
|
||||
}
|
||||
|
|
|
@ -1,24 +1,24 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.24.3
|
||||
// source: membership_update_message.proto
|
||||
|
||||
package protobuf
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// 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
|
||||
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)
|
||||
)
|
||||
|
||||
type MembershipUpdateEvent_EventType int32
|
||||
|
||||
|
@ -35,41 +35,66 @@ const (
|
|||
MembershipUpdateEvent_IMAGE_CHANGED MembershipUpdateEvent_EventType = 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",
|
||||
}
|
||||
// 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_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) Enum() *MembershipUpdateEvent_EventType {
|
||||
p := new(MembershipUpdateEvent_EventType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x MembershipUpdateEvent_EventType) String() string {
|
||||
return proto.EnumName(MembershipUpdateEvent_EventType_name, int32(x))
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(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 fileDescriptor_8d37dd0dc857a6be, []int{0, 0}
|
||||
return file_membership_update_message_proto_rawDescGZIP(), []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
|
||||
|
@ -81,75 +106,79 @@ 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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Image []byte `protobuf:"bytes,6,opt,name=image,proto3" json:"image,omitempty"`
|
||||
}
|
||||
|
||||
func (m *MembershipUpdateEvent) Reset() { *m = MembershipUpdateEvent{} }
|
||||
func (m *MembershipUpdateEvent) String() string { return proto.CompactTextString(m) }
|
||||
func (*MembershipUpdateEvent) ProtoMessage() {}
|
||||
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 (*MembershipUpdateEvent) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_8d37dd0dc857a6be, []int{0}
|
||||
return file_membership_update_message_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *MembershipUpdateEvent) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *MembershipUpdateEvent) GetMembers() []string {
|
||||
if m != nil {
|
||||
return m.Members
|
||||
func (x *MembershipUpdateEvent) GetMembers() []string {
|
||||
if x != nil {
|
||||
return x.Members
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *MembershipUpdateEvent) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
func (x *MembershipUpdateEvent) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MembershipUpdateEvent) GetType() MembershipUpdateEvent_EventType {
|
||||
if m != nil {
|
||||
return m.Type
|
||||
func (x *MembershipUpdateEvent) GetType() MembershipUpdateEvent_EventType {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return MembershipUpdateEvent_UNKNOWN
|
||||
}
|
||||
|
||||
func (m *MembershipUpdateEvent) GetColor() string {
|
||||
if m != nil {
|
||||
return m.Color
|
||||
func (x *MembershipUpdateEvent) GetColor() string {
|
||||
if x != nil {
|
||||
return x.Color
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MembershipUpdateEvent) GetImage() []byte {
|
||||
if m != nil {
|
||||
return m.Image
|
||||
func (x *MembershipUpdateEvent) GetImage() []byte {
|
||||
if x != nil {
|
||||
return x.Image
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
@ -158,6 +187,10 @@ func (m *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
|
||||
|
@ -165,51 +198,76 @@ type MembershipUpdateMessage struct {
|
|||
Events [][]byte `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"`
|
||||
// An optional chat message
|
||||
//
|
||||
// Types that are valid to be assigned to ChatEntity:
|
||||
// Types that are assignable to ChatEntity:
|
||||
//
|
||||
// *MembershipUpdateMessage_Message
|
||||
// *MembershipUpdateMessage_EmojiReaction
|
||||
ChatEntity isMembershipUpdateMessage_ChatEntity `protobuf_oneof:"chat_entity"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
ChatEntity isMembershipUpdateMessage_ChatEntity `protobuf_oneof:"chat_entity"`
|
||||
}
|
||||
|
||||
func (m *MembershipUpdateMessage) Reset() { *m = MembershipUpdateMessage{} }
|
||||
func (m *MembershipUpdateMessage) String() string { return proto.CompactTextString(m) }
|
||||
func (*MembershipUpdateMessage) ProtoMessage() {}
|
||||
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 (*MembershipUpdateMessage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_8d37dd0dc857a6be, []int{1}
|
||||
return file_membership_update_message_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *MembershipUpdateMessage) GetChatId() string {
|
||||
if x != nil {
|
||||
return x.ChatId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MembershipUpdateMessage) GetEvents() [][]byte {
|
||||
func (x *MembershipUpdateMessage) GetEvents() [][]byte {
|
||||
if x != nil {
|
||||
return x.Events
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *MembershipUpdateMessage) GetChatEntity() isMembershipUpdateMessage_ChatEntity {
|
||||
if m != nil {
|
||||
return m.Events
|
||||
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 nil
|
||||
}
|
||||
|
@ -230,73 +288,142 @@ func (*MembershipUpdateMessage_Message) isMembershipUpdateMessage_ChatEntity() {
|
|||
|
||||
func (*MembershipUpdateMessage_EmojiReaction) isMembershipUpdateMessage_ChatEntity() {}
|
||||
|
||||
func (m *MembershipUpdateMessage) GetChatEntity() isMembershipUpdateMessage_ChatEntity {
|
||||
if m != nil {
|
||||
return m.ChatEntity
|
||||
}
|
||||
return nil
|
||||
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,
|
||||
}
|
||||
|
||||
func (m *MembershipUpdateMessage) GetMessage() *ChatMessage {
|
||||
if x, ok := m.GetChatEntity().(*MembershipUpdateMessage_Message); ok {
|
||||
return x.Message
|
||||
}
|
||||
return nil
|
||||
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
|
||||
}
|
||||
|
||||
func (m *MembershipUpdateMessage) GetEmojiReaction() *EmojiReaction {
|
||||
if x, ok := m.GetChatEntity().(*MembershipUpdateMessage_EmojiReaction); ok {
|
||||
return x.EmojiReaction
|
||||
}
|
||||
return nil
|
||||
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
|
||||
}
|
||||
|
||||
// XXX_OneofWrappers is for the internal use of the proto package.
|
||||
func (*MembershipUpdateMessage) XXX_OneofWrappers() []interface{} {
|
||||
return []interface{}{
|
||||
func init() { file_membership_update_message_proto_init() }
|
||||
func file_membership_update_message_proto_init() {
|
||||
if File_membership_update_message_proto != nil {
|
||||
return
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
file_membership_update_message_proto_msgTypes[1].OneofWrappers = []interface{}{
|
||||
(*MembershipUpdateMessage_Message)(nil),
|
||||
(*MembershipUpdateMessage_EmojiReaction)(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,
|
||||
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
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -423,3 +423,16 @@ message SyncTokenPreferences {
|
|||
bool testnet = 2;
|
||||
repeated TokenPreferences preferences = 3;
|
||||
}
|
||||
|
||||
message CollectiblePreferences {
|
||||
int64 type = 1;
|
||||
string key = 2;
|
||||
int64 position = 3;
|
||||
bool visible = 4;
|
||||
}
|
||||
|
||||
message SyncCollectiblePreferences {
|
||||
uint64 clock = 1;
|
||||
bool testnet = 2;
|
||||
repeated CollectiblePreferences preferences = 3;
|
||||
}
|
|
@ -1,117 +1,187 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.24.3
|
||||
// source: pin_message.proto
|
||||
|
||||
package protobuf
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// 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
|
||||
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)
|
||||
)
|
||||
|
||||
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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
MessageType MessageType `protobuf:"varint,5,opt,name=message_type,json=messageType,proto3,enum=protobuf.MessageType" json:"message_type,omitempty"`
|
||||
}
|
||||
|
||||
func (m *PinMessage) Reset() { *m = PinMessage{} }
|
||||
func (m *PinMessage) String() string { return proto.CompactTextString(m) }
|
||||
func (*PinMessage) ProtoMessage() {}
|
||||
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 (*PinMessage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b3c2ad1be7128a0a, []int{0}
|
||||
return file_pin_message_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *PinMessage) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *PinMessage) GetMessageId() string {
|
||||
if m != nil {
|
||||
return m.MessageId
|
||||
func (x *PinMessage) GetMessageId() string {
|
||||
if x != nil {
|
||||
return x.MessageId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PinMessage) GetChatId() string {
|
||||
if m != nil {
|
||||
return m.ChatId
|
||||
func (x *PinMessage) GetChatId() string {
|
||||
if x != nil {
|
||||
return x.ChatId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PinMessage) GetPinned() bool {
|
||||
if m != nil {
|
||||
return m.Pinned
|
||||
func (x *PinMessage) GetPinned() bool {
|
||||
if x != nil {
|
||||
return x.Pinned
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *PinMessage) GetMessageType() MessageType {
|
||||
if m != nil {
|
||||
return m.MessageType
|
||||
func (x *PinMessage) GetMessageType() MessageType {
|
||||
if x != nil {
|
||||
return x.MessageType
|
||||
}
|
||||
return MessageType_UNKNOWN_MESSAGE_TYPE
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*PinMessage)(nil), "protobuf.PinMessage")
|
||||
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.RegisterFile("pin_message.proto", fileDescriptor_b3c2ad1be7128a0a)
|
||||
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
|
||||
}
|
||||
|
||||
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,
|
||||
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
|
||||
}
|
||||
|
|
|
@ -1,446 +1,676 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.24.3
|
||||
// source: profile_showcase.proto
|
||||
|
||||
package protobuf
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// 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
|
||||
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)
|
||||
)
|
||||
|
||||
type ProfileShowcaseCommunity struct {
|
||||
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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *ProfileShowcaseCommunity) Reset() { *m = ProfileShowcaseCommunity{} }
|
||||
func (m *ProfileShowcaseCommunity) String() string { return proto.CompactTextString(m) }
|
||||
func (*ProfileShowcaseCommunity) ProtoMessage() {}
|
||||
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 (*ProfileShowcaseCommunity) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5bcd51b424a05798, []int{0}
|
||||
return file_profile_showcase_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *ProfileShowcaseCommunity) GetCommunityId() string {
|
||||
if x != nil {
|
||||
return x.CommunityId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProfileShowcaseCommunity) GetOrder() uint32 {
|
||||
if m != nil {
|
||||
return m.Order
|
||||
func (x *ProfileShowcaseCommunity) GetOrder() uint32 {
|
||||
if x != nil {
|
||||
return x.Order
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ProfileShowcaseAccount struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *ProfileShowcaseAccount) Reset() { *m = ProfileShowcaseAccount{} }
|
||||
func (m *ProfileShowcaseAccount) String() string { return proto.CompactTextString(m) }
|
||||
func (*ProfileShowcaseAccount) ProtoMessage() {}
|
||||
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 (*ProfileShowcaseAccount) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5bcd51b424a05798, []int{1}
|
||||
return file_profile_showcase_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *ProfileShowcaseAccount) GetAddress() string {
|
||||
if x != nil {
|
||||
return x.Address
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProfileShowcaseAccount) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
func (x *ProfileShowcaseAccount) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProfileShowcaseAccount) GetColorId() string {
|
||||
if m != nil {
|
||||
return m.ColorId
|
||||
func (x *ProfileShowcaseAccount) GetColorId() string {
|
||||
if x != nil {
|
||||
return x.ColorId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProfileShowcaseAccount) GetEmoji() string {
|
||||
if m != nil {
|
||||
return m.Emoji
|
||||
func (x *ProfileShowcaseAccount) GetEmoji() string {
|
||||
if x != nil {
|
||||
return x.Emoji
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProfileShowcaseAccount) GetOrder() uint32 {
|
||||
if m != nil {
|
||||
return m.Order
|
||||
func (x *ProfileShowcaseAccount) GetOrder() uint32 {
|
||||
if x != nil {
|
||||
return x.Order
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ProfileShowcaseCollectible struct {
|
||||
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,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:"-"`
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
|
||||
Order uint32 `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"`
|
||||
}
|
||||
|
||||
func (m *ProfileShowcaseCollectible) Reset() { *m = ProfileShowcaseCollectible{} }
|
||||
func (m *ProfileShowcaseCollectible) String() string { return proto.CompactTextString(m) }
|
||||
func (*ProfileShowcaseCollectible) ProtoMessage() {}
|
||||
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 (*ProfileShowcaseCollectible) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5bcd51b424a05798, []int{2}
|
||||
return file_profile_showcase_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
func (m *ProfileShowcaseCollectible) GetUid() string {
|
||||
if m != nil {
|
||||
return m.Uid
|
||||
func (x *ProfileShowcaseCollectible) GetUid() string {
|
||||
if x != nil {
|
||||
return x.Uid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProfileShowcaseCollectible) GetOrder() uint32 {
|
||||
if m != nil {
|
||||
return m.Order
|
||||
func (x *ProfileShowcaseCollectible) GetOrder() uint32 {
|
||||
if x != nil {
|
||||
return x.Order
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ProfileShowcaseAsset struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *ProfileShowcaseAsset) Reset() { *m = ProfileShowcaseAsset{} }
|
||||
func (m *ProfileShowcaseAsset) String() string { return proto.CompactTextString(m) }
|
||||
func (*ProfileShowcaseAsset) ProtoMessage() {}
|
||||
func (x *ProfileShowcaseAsset) Reset() {
|
||||
*x = ProfileShowcaseAsset{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_profile_showcase_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *ProfileShowcaseAsset) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ProfileShowcaseAsset) ProtoMessage() {}
|
||||
|
||||
func (x *ProfileShowcaseAsset) 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 ProfileShowcaseAsset.ProtoReflect.Descriptor instead.
|
||||
func (*ProfileShowcaseAsset) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5bcd51b424a05798, []int{3}
|
||||
return file_profile_showcase_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (m *ProfileShowcaseAsset) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ProfileShowcaseAsset.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ProfileShowcaseAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ProfileShowcaseAsset.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ProfileShowcaseAsset) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ProfileShowcaseAsset.Merge(m, src)
|
||||
}
|
||||
func (m *ProfileShowcaseAsset) XXX_Size() int {
|
||||
return xxx_messageInfo_ProfileShowcaseAsset.Size(m)
|
||||
}
|
||||
func (m *ProfileShowcaseAsset) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ProfileShowcaseAsset.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ProfileShowcaseAsset proto.InternalMessageInfo
|
||||
|
||||
func (m *ProfileShowcaseAsset) GetSymbol() string {
|
||||
if m != nil {
|
||||
return m.Symbol
|
||||
func (x *ProfileShowcaseAsset) GetSymbol() string {
|
||||
if x != nil {
|
||||
return x.Symbol
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProfileShowcaseAsset) GetOrder() uint32 {
|
||||
if m != nil {
|
||||
return m.Order
|
||||
func (x *ProfileShowcaseAsset) GetOrder() uint32 {
|
||||
if x != nil {
|
||||
return x.Order
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ProfileShowcaseEntries struct {
|
||||
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"`
|
||||
Assets []*ProfileShowcaseAsset `protobuf:"bytes,4,rep,name=assets,proto3" json:"assets,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
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"`
|
||||
Assets []*ProfileShowcaseAsset `protobuf:"bytes,4,rep,name=assets,proto3" json:"assets,omitempty"`
|
||||
}
|
||||
|
||||
func (m *ProfileShowcaseEntries) Reset() { *m = ProfileShowcaseEntries{} }
|
||||
func (m *ProfileShowcaseEntries) String() string { return proto.CompactTextString(m) }
|
||||
func (*ProfileShowcaseEntries) ProtoMessage() {}
|
||||
func (x *ProfileShowcaseEntries) Reset() {
|
||||
*x = ProfileShowcaseEntries{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_profile_showcase_proto_msgTypes[4]
|
||||
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[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 ProfileShowcaseEntries.ProtoReflect.Descriptor instead.
|
||||
func (*ProfileShowcaseEntries) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5bcd51b424a05798, []int{4}
|
||||
return file_profile_showcase_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *ProfileShowcaseEntries) GetCommunities() []*ProfileShowcaseCommunity {
|
||||
if x != nil {
|
||||
return x.Communities
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ProfileShowcaseEntries) GetAccounts() []*ProfileShowcaseAccount {
|
||||
if m != nil {
|
||||
return m.Accounts
|
||||
func (x *ProfileShowcaseEntries) GetAccounts() []*ProfileShowcaseAccount {
|
||||
if x != nil {
|
||||
return x.Accounts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ProfileShowcaseEntries) GetCollectibles() []*ProfileShowcaseCollectible {
|
||||
if m != nil {
|
||||
return m.Collectibles
|
||||
func (x *ProfileShowcaseEntries) GetCollectibles() []*ProfileShowcaseCollectible {
|
||||
if x != nil {
|
||||
return x.Collectibles
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ProfileShowcaseEntries) GetAssets() []*ProfileShowcaseAsset {
|
||||
if m != nil {
|
||||
return m.Assets
|
||||
func (x *ProfileShowcaseEntries) GetAssets() []*ProfileShowcaseAsset {
|
||||
if x != nil {
|
||||
return x.Assets
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ProfileShowcaseEntriesEncrypted struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *ProfileShowcaseEntriesEncrypted) Reset() { *m = ProfileShowcaseEntriesEncrypted{} }
|
||||
func (m *ProfileShowcaseEntriesEncrypted) String() string { return proto.CompactTextString(m) }
|
||||
func (*ProfileShowcaseEntriesEncrypted) ProtoMessage() {}
|
||||
func (x *ProfileShowcaseEntriesEncrypted) Reset() {
|
||||
*x = ProfileShowcaseEntriesEncrypted{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_profile_showcase_proto_msgTypes[5]
|
||||
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[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 ProfileShowcaseEntriesEncrypted.ProtoReflect.Descriptor instead.
|
||||
func (*ProfileShowcaseEntriesEncrypted) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5bcd51b424a05798, []int{5}
|
||||
return file_profile_showcase_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *ProfileShowcaseEntriesEncrypted) GetEncryptedEntries() []byte {
|
||||
if x != nil {
|
||||
return x.EncryptedEntries
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ProfileShowcaseEntriesEncrypted) GetEncryptionKeys() [][]byte {
|
||||
if m != nil {
|
||||
return m.EncryptionKeys
|
||||
func (x *ProfileShowcaseEntriesEncrypted) GetEncryptionKeys() [][]byte {
|
||||
if x != nil {
|
||||
return x.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 (m *ProfileShowcase) Reset() { *m = ProfileShowcase{} }
|
||||
func (m *ProfileShowcase) String() string { return proto.CompactTextString(m) }
|
||||
func (*ProfileShowcase) ProtoMessage() {}
|
||||
func (x *ProfileShowcase) Reset() {
|
||||
*x = ProfileShowcase{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_profile_showcase_proto_msgTypes[6]
|
||||
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[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 ProfileShowcase.ProtoReflect.Descriptor instead.
|
||||
func (*ProfileShowcase) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5bcd51b424a05798, []int{6}
|
||||
return file_profile_showcase_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *ProfileShowcase) GetForEveryone() *ProfileShowcaseEntries {
|
||||
if x != nil {
|
||||
return x.ForEveryone
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ProfileShowcase) GetForContacts() *ProfileShowcaseEntriesEncrypted {
|
||||
if m != nil {
|
||||
return m.ForContacts
|
||||
func (x *ProfileShowcase) GetForContacts() *ProfileShowcaseEntriesEncrypted {
|
||||
if x != nil {
|
||||
return x.ForContacts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ProfileShowcase) GetForIdVerifiedContacts() *ProfileShowcaseEntriesEncrypted {
|
||||
if m != nil {
|
||||
return m.ForIdVerifiedContacts
|
||||
func (x *ProfileShowcase) GetForIdVerifiedContacts() *ProfileShowcaseEntriesEncrypted {
|
||||
if x != nil {
|
||||
return x.ForIdVerifiedContacts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ProfileShowcaseCommunity)(nil), "protobuf.ProfileShowcaseCommunity")
|
||||
proto.RegisterType((*ProfileShowcaseAccount)(nil), "protobuf.ProfileShowcaseAccount")
|
||||
proto.RegisterType((*ProfileShowcaseCollectible)(nil), "protobuf.ProfileShowcaseCollectible")
|
||||
proto.RegisterType((*ProfileShowcaseAsset)(nil), "protobuf.ProfileShowcaseAsset")
|
||||
proto.RegisterType((*ProfileShowcaseEntries)(nil), "protobuf.ProfileShowcaseEntries")
|
||||
proto.RegisterType((*ProfileShowcaseEntriesEncrypted)(nil), "protobuf.ProfileShowcaseEntriesEncrypted")
|
||||
proto.RegisterType((*ProfileShowcase)(nil), "protobuf.ProfileShowcase")
|
||||
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, 0x53, 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, 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, 0x44, 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, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x09, 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, 0x22, 0x44, 0x0a,
|
||||
0x14, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x63, 0x61, 0x73, 0x65,
|
||||
0x41, 0x73, 0x73, 0x65, 0x74, 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, 0x9e, 0x02, 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, 0x36, 0x0a, 0x06,
|
||||
0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 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, 0x73, 0x73, 0x65, 0x74, 0x52, 0x06, 0x61, 0x73,
|
||||
0x73, 0x65, 0x74, 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, 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.RegisterFile("profile_showcase.proto", fileDescriptor_5bcd51b424a05798)
|
||||
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
|
||||
}
|
||||
|
||||
var fileDescriptor_5bcd51b424a05798 = []byte{
|
||||
// 476 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xc1, 0x6e, 0xd3, 0x40,
|
||||
0x10, 0x86, 0x95, 0x38, 0x0d, 0xe9, 0x24, 0xa5, 0x65, 0x54, 0x22, 0xc3, 0x01, 0x82, 0x85, 0x44,
|
||||
0x10, 0x52, 0x90, 0x40, 0xe2, 0x02, 0x17, 0x48, 0x22, 0x81, 0xe0, 0x80, 0xb6, 0x12, 0x07, 0x2e,
|
||||
0x96, 0xbd, 0x1e, 0x8b, 0x05, 0xdb, 0x1b, 0xed, 0x3a, 0xad, 0xfc, 0x06, 0x5c, 0x78, 0x05, 0x9e,
|
||||
0x15, 0x79, 0x77, 0xed, 0x94, 0x14, 0x17, 0xf5, 0xe4, 0xfd, 0xd7, 0x33, 0xdf, 0xcc, 0xfc, 0xa3,
|
||||
0x85, 0xe9, 0x46, 0xc9, 0x54, 0x64, 0x14, 0xea, 0x6f, 0xf2, 0x82, 0x47, 0x9a, 0x16, 0x1b, 0x25,
|
||||
0x4b, 0x89, 0x23, 0xf3, 0x89, 0xb7, 0x69, 0x70, 0x06, 0xfe, 0x67, 0x1b, 0x73, 0xe6, 0x42, 0x96,
|
||||
0x32, 0xcf, 0xb7, 0x85, 0x28, 0x2b, 0x7c, 0x04, 0x13, 0xde, 0x88, 0x50, 0x24, 0x7e, 0x6f, 0xd6,
|
||||
0x9b, 0x1f, 0xb2, 0x71, 0x7b, 0xf7, 0x21, 0xc1, 0x53, 0x38, 0x90, 0x2a, 0x21, 0xe5, 0xf7, 0x67,
|
||||
0xbd, 0xf9, 0x11, 0xb3, 0x22, 0xf8, 0xd5, 0x83, 0xe9, 0x1e, 0xf5, 0x2d, 0xe7, 0x72, 0x5b, 0x94,
|
||||
0xe8, 0xc3, 0xad, 0x28, 0x49, 0x14, 0x69, 0xed, 0x70, 0x8d, 0x44, 0x84, 0x41, 0x11, 0xe5, 0x64,
|
||||
0x48, 0x87, 0xcc, 0x9c, 0xf1, 0x1e, 0x8c, 0xb8, 0xcc, 0xa4, 0xaa, 0xab, 0x7b, 0x36, 0xdc, 0x68,
|
||||
0x5b, 0x99, 0x72, 0xf9, 0x5d, 0xf8, 0x03, 0x73, 0x6f, 0xc5, 0xae, 0x9f, 0x83, 0xcb, 0xfd, 0xac,
|
||||
0xe0, 0xfe, 0x95, 0x21, 0xb3, 0x8c, 0x78, 0x29, 0xe2, 0x8c, 0xf0, 0x04, 0xbc, 0x6d, 0x3b, 0x5d,
|
||||
0x7d, 0xec, 0x98, 0x6a, 0x05, 0xa7, 0xfb, 0x43, 0x69, 0x4d, 0x25, 0x4e, 0x61, 0xa8, 0xab, 0x3c,
|
||||
0x96, 0x99, 0x43, 0x38, 0xd5, 0x41, 0xf9, 0xdd, 0xbf, 0xe2, 0xcd, 0xba, 0x28, 0x95, 0x20, 0x8d,
|
||||
0x2b, 0x68, 0xbd, 0x15, 0x54, 0xfb, 0xe3, 0xcd, 0xc7, 0x2f, 0x82, 0x45, 0xb3, 0xab, 0x45, 0xd7,
|
||||
0xa2, 0xd8, 0xe5, 0x34, 0x7c, 0x03, 0xa3, 0xc8, 0x9a, 0xad, 0xfd, 0xbe, 0x41, 0xcc, 0x3a, 0x11,
|
||||
0x6e, 0x2b, 0xac, 0xcd, 0xc0, 0xf7, 0xf5, 0xce, 0x5b, 0x6f, 0xb4, 0xef, 0x19, 0xc2, 0xe3, 0x6b,
|
||||
0x9a, 0x68, 0x83, 0xd9, 0x5f, 0x99, 0xf8, 0x0a, 0x86, 0x51, 0xed, 0x8f, 0xf6, 0x07, 0x86, 0xf1,
|
||||
0xa0, 0xbb, 0x8b, 0x3a, 0x8c, 0xb9, 0xe8, 0xe0, 0x02, 0x1e, 0xfe, 0xdb, 0x9f, 0x75, 0xc1, 0x55,
|
||||
0xb5, 0x29, 0x29, 0xc1, 0x67, 0x70, 0x87, 0x1a, 0x11, 0x92, 0xfd, 0x6b, 0xcc, 0x9f, 0xb0, 0x93,
|
||||
0xf6, 0x47, 0xe3, 0xea, 0x13, 0x38, 0x76, 0x77, 0x42, 0x16, 0xe1, 0x0f, 0xaa, 0xac, 0x2d, 0x13,
|
||||
0x76, 0x7b, 0x77, 0xfd, 0x91, 0x2a, 0x1d, 0xfc, 0xec, 0xc3, 0xf1, 0x5e, 0x65, 0x5c, 0xc2, 0x24,
|
||||
0x95, 0x2a, 0xa4, 0x73, 0x52, 0x95, 0x2c, 0xc8, 0x14, 0xb9, 0xce, 0x50, 0x57, 0x94, 0x8d, 0x53,
|
||||
0xa9, 0xd6, 0x2e, 0x09, 0x3f, 0x59, 0x08, 0x97, 0x45, 0x19, 0x71, 0xb3, 0x95, 0x1a, 0xf2, 0xf4,
|
||||
0x7f, 0x90, 0x76, 0x5e, 0x43, 0x5b, 0xba, 0x6c, 0x8c, 0xc1, 0x4f, 0xcd, 0x8b, 0x08, 0xcf, 0x49,
|
||||
0x89, 0x54, 0x50, 0xb2, 0x23, 0x7b, 0x37, 0x25, 0xdf, 0x4d, 0xeb, 0xc7, 0xf4, 0xc5, 0x81, 0x9a,
|
||||
0x1a, 0xef, 0x8e, 0xbe, 0x8e, 0x17, 0xcf, 0x5f, 0x37, 0x94, 0x78, 0x68, 0x4e, 0x2f, 0xff, 0x04,
|
||||
0x00, 0x00, 0xff, 0xff, 0xa3, 0x4a, 0xd5, 0x2c, 0x4f, 0x04, 0x00, 0x00,
|
||||
var file_profile_showcase_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_profile_showcase_proto_goTypes = []interface{}{
|
||||
(*ProfileShowcaseCommunity)(nil), // 0: protobuf.ProfileShowcaseCommunity
|
||||
(*ProfileShowcaseAccount)(nil), // 1: protobuf.ProfileShowcaseAccount
|
||||
(*ProfileShowcaseCollectible)(nil), // 2: protobuf.ProfileShowcaseCollectible
|
||||
(*ProfileShowcaseAsset)(nil), // 3: protobuf.ProfileShowcaseAsset
|
||||
(*ProfileShowcaseEntries)(nil), // 4: protobuf.ProfileShowcaseEntries
|
||||
(*ProfileShowcaseEntriesEncrypted)(nil), // 5: protobuf.ProfileShowcaseEntriesEncrypted
|
||||
(*ProfileShowcase)(nil), // 6: protobuf.ProfileShowcase
|
||||
}
|
||||
var file_profile_showcase_proto_depIdxs = []int32{
|
||||
0, // 0: protobuf.ProfileShowcaseEntries.communities:type_name -> protobuf.ProfileShowcaseCommunity
|
||||
1, // 1: protobuf.ProfileShowcaseEntries.accounts:type_name -> protobuf.ProfileShowcaseAccount
|
||||
2, // 2: protobuf.ProfileShowcaseEntries.collectibles:type_name -> protobuf.ProfileShowcaseCollectible
|
||||
3, // 3: protobuf.ProfileShowcaseEntries.assets:type_name -> protobuf.ProfileShowcaseAsset
|
||||
4, // 4: protobuf.ProfileShowcase.for_everyone:type_name -> protobuf.ProfileShowcaseEntries
|
||||
5, // 5: protobuf.ProfileShowcase.for_contacts:type_name -> protobuf.ProfileShowcaseEntriesEncrypted
|
||||
5, // 6: protobuf.ProfileShowcase.for_id_verified_contacts:type_name -> protobuf.ProfileShowcaseEntriesEncrypted
|
||||
7, // [7:7] is the sub-list for method output_type
|
||||
7, // [7:7] is the sub-list for method input_type
|
||||
7, // [7:7] is the sub-list for extension type_name
|
||||
7, // [7:7] is the sub-list for extension extendee
|
||||
0, // [0:7] 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.(*ProfileShowcaseAsset); 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.(*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[5].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[6].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
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_profile_showcase_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 7,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_profile_showcase_proto_goTypes,
|
||||
DependencyIndexes: file_profile_showcase_proto_depIdxs,
|
||||
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
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,26 +1,30 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.24.3
|
||||
// source: segment_message.proto
|
||||
|
||||
package protobuf
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// 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
|
||||
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)
|
||||
)
|
||||
|
||||
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
|
||||
|
@ -28,84 +32,147 @@ 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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
|
||||
}
|
||||
|
||||
func (m *SegmentMessage) Reset() { *m = SegmentMessage{} }
|
||||
func (m *SegmentMessage) String() string { return proto.CompactTextString(m) }
|
||||
func (*SegmentMessage) ProtoMessage() {}
|
||||
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 (*SegmentMessage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_857302809a887a8b, []int{0}
|
||||
return file_segment_message_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *SegmentMessage) GetEntireMessageHash() []byte {
|
||||
if x != nil {
|
||||
return x.EntireMessageHash
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *SegmentMessage) GetIndex() uint32 {
|
||||
if m != nil {
|
||||
return m.Index
|
||||
func (x *SegmentMessage) GetIndex() uint32 {
|
||||
if x != nil {
|
||||
return x.Index
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *SegmentMessage) GetSegmentsCount() uint32 {
|
||||
if m != nil {
|
||||
return m.SegmentsCount
|
||||
func (x *SegmentMessage) GetSegmentsCount() uint32 {
|
||||
if x != nil {
|
||||
return x.SegmentsCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *SegmentMessage) GetPayload() []byte {
|
||||
if m != nil {
|
||||
return m.Payload
|
||||
func (x *SegmentMessage) GetPayload() []byte {
|
||||
if x != nil {
|
||||
return x.Payload
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*SegmentMessage)(nil), "protobuf.SegmentMessage")
|
||||
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.RegisterFile("segment_message.proto", fileDescriptor_857302809a887a8b)
|
||||
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
|
||||
}
|
||||
|
||||
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,
|
||||
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
|
||||
}
|
||||
|
|
|
@ -1,73 +1,85 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.24.3
|
||||
// source: shard.proto
|
||||
|
||||
package protobuf
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// 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
|
||||
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)
|
||||
)
|
||||
|
||||
type Shard struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *Shard) Reset() { *m = Shard{} }
|
||||
func (m *Shard) String() string { return proto.CompactTextString(m) }
|
||||
func (*Shard) ProtoMessage() {}
|
||||
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 (*Shard) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_319ea41e44cdc364, []int{0}
|
||||
return file_shard_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *Shard) GetCluster() int32 {
|
||||
if x != nil {
|
||||
return x.Cluster
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Shard) GetIndex() int32 {
|
||||
if m != nil {
|
||||
return m.Index
|
||||
func (x *Shard) GetIndex() int32 {
|
||||
if x != nil {
|
||||
return x.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
|
||||
|
@ -75,139 +87,238 @@ 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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
ChainId uint64 `protobuf:"varint,4,opt,name=chainId,proto3" json:"chainId,omitempty"`
|
||||
}
|
||||
|
||||
func (m *PublicShardInfo) Reset() { *m = PublicShardInfo{} }
|
||||
func (m *PublicShardInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*PublicShardInfo) ProtoMessage() {}
|
||||
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 (*PublicShardInfo) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_319ea41e44cdc364, []int{1}
|
||||
return file_shard_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *PublicShardInfo) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *PublicShardInfo) GetCommunityId() []byte {
|
||||
if m != nil {
|
||||
return m.CommunityId
|
||||
func (x *PublicShardInfo) GetCommunityId() []byte {
|
||||
if x != nil {
|
||||
return x.CommunityId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PublicShardInfo) GetShard() *Shard {
|
||||
if m != nil {
|
||||
return m.Shard
|
||||
func (x *PublicShardInfo) GetShard() *Shard {
|
||||
if x != nil {
|
||||
return x.Shard
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PublicShardInfo) GetChainId() uint64 {
|
||||
if m != nil {
|
||||
return m.ChainId
|
||||
func (x *PublicShardInfo) GetChainId() uint64 {
|
||||
if x != nil {
|
||||
return x.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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
|
||||
}
|
||||
|
||||
func (m *CommunityPublicShardInfo) Reset() { *m = CommunityPublicShardInfo{} }
|
||||
func (m *CommunityPublicShardInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*CommunityPublicShardInfo) ProtoMessage() {}
|
||||
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 (*CommunityPublicShardInfo) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_319ea41e44cdc364, []int{2}
|
||||
return file_shard_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *CommunityPublicShardInfo) GetSignature() []byte {
|
||||
if x != nil {
|
||||
return x.Signature
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CommunityPublicShardInfo) GetPayload() []byte {
|
||||
if m != nil {
|
||||
return m.Payload
|
||||
func (x *CommunityPublicShardInfo) GetPayload() []byte {
|
||||
if x != nil {
|
||||
return x.Payload
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Shard)(nil), "protobuf.Shard")
|
||||
proto.RegisterType((*PublicShardInfo)(nil), "protobuf.PublicShardInfo")
|
||||
proto.RegisterType((*CommunityPublicShardInfo)(nil), "protobuf.CommunityPublicShardInfo")
|
||||
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.RegisterFile("shard.proto", fileDescriptor_319ea41e44cdc364)
|
||||
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
|
||||
}
|
||||
|
||||
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,
|
||||
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
|
||||
}
|
||||
|
|
|
@ -1,24 +1,24 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.24.3
|
||||
// source: status_update.proto
|
||||
|
||||
package protobuf
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// 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
|
||||
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)
|
||||
)
|
||||
|
||||
type StatusUpdate_StatusType int32
|
||||
|
||||
|
@ -30,28 +30,49 @@ const (
|
|||
StatusUpdate_INACTIVE StatusUpdate_StatusType = 4
|
||||
)
|
||||
|
||||
var StatusUpdate_StatusType_name = map[int32]string{
|
||||
0: "UNKNOWN_STATUS_TYPE",
|
||||
1: "AUTOMATIC",
|
||||
2: "DO_NOT_DISTURB",
|
||||
3: "ALWAYS_ONLINE",
|
||||
4: "INACTIVE",
|
||||
}
|
||||
// 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_value = map[string]int32{
|
||||
"UNKNOWN_STATUS_TYPE": 0,
|
||||
"AUTOMATIC": 1,
|
||||
"DO_NOT_DISTURB": 2,
|
||||
"ALWAYS_ONLINE": 3,
|
||||
"INACTIVE": 4,
|
||||
func (x StatusUpdate_StatusType) Enum() *StatusUpdate_StatusType {
|
||||
p := new(StatusUpdate_StatusType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x StatusUpdate_StatusType) String() string {
|
||||
return proto.EnumName(StatusUpdate_StatusType_name, int32(x))
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(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 fileDescriptor_911acd91e62cd3d7, []int{0, 0}
|
||||
return file_status_update_proto_rawDescGZIP(), []int{0, 0}
|
||||
}
|
||||
|
||||
// Specs:
|
||||
|
@ -66,85 +87,155 @@ 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 {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *StatusUpdate) Reset() { *m = StatusUpdate{} }
|
||||
func (m *StatusUpdate) String() string { return proto.CompactTextString(m) }
|
||||
func (*StatusUpdate) ProtoMessage() {}
|
||||
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 (*StatusUpdate) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_911acd91e62cd3d7, []int{0}
|
||||
return file_status_update_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *StatusUpdate) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *StatusUpdate) GetStatusType() StatusUpdate_StatusType {
|
||||
if m != nil {
|
||||
return m.StatusType
|
||||
func (x *StatusUpdate) GetStatusType() StatusUpdate_StatusType {
|
||||
if x != nil {
|
||||
return x.StatusType
|
||||
}
|
||||
return StatusUpdate_UNKNOWN_STATUS_TYPE
|
||||
}
|
||||
|
||||
func (m *StatusUpdate) GetCustomText() string {
|
||||
if m != nil {
|
||||
return m.CustomText
|
||||
func (x *StatusUpdate) GetCustomText() string {
|
||||
if x != nil {
|
||||
return x.CustomText
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("protobuf.StatusUpdate_StatusType", StatusUpdate_StatusType_name, StatusUpdate_StatusType_value)
|
||||
proto.RegisterType((*StatusUpdate)(nil), "protobuf.StatusUpdate")
|
||||
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.RegisterFile("status_update.proto", fileDescriptor_911acd91e62cd3d7)
|
||||
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
|
||||
}
|
||||
|
||||
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,
|
||||
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
|
||||
}
|
||||
|
|
|
@ -1,24 +1,24 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.24.3
|
||||
// source: sync_settings.proto
|
||||
|
||||
package protobuf
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// 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
|
||||
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)
|
||||
)
|
||||
|
||||
type SyncSetting_Type int32
|
||||
|
||||
|
@ -45,110 +45,174 @@ const (
|
|||
SyncSetting_DISPLAY_ASSETS_BELOW_BALANCE_THRESHOLD SyncSetting_Type = 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",
|
||||
}
|
||||
// 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_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) Enum() *SyncSetting_Type {
|
||||
p := new(SyncSetting_Type)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x SyncSetting_Type) String() string {
|
||||
return proto.EnumName(SyncSetting_Type_name, int32(x))
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(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 fileDescriptor_e2f7a0bce2873c78, []int{0, 0}
|
||||
return file_sync_settings_proto_rawDescGZIP(), []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 valid to be assigned to Value:
|
||||
// Types that are assignable to Value:
|
||||
//
|
||||
// *SyncSetting_ValueString
|
||||
// *SyncSetting_ValueBytes
|
||||
// *SyncSetting_ValueBool
|
||||
// *SyncSetting_ValueInt64
|
||||
Value isSyncSetting_Value `protobuf_oneof:"value"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Value isSyncSetting_Value `protobuf_oneof:"value"`
|
||||
}
|
||||
|
||||
func (m *SyncSetting) Reset() { *m = SyncSetting{} }
|
||||
func (m *SyncSetting) String() string { return proto.CompactTextString(m) }
|
||||
func (*SyncSetting) ProtoMessage() {}
|
||||
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 (*SyncSetting) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e2f7a0bce2873c78, []int{0}
|
||||
return file_sync_settings_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *SyncSetting) GetType() SyncSetting_Type {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return SyncSetting_UNKNOWN
|
||||
}
|
||||
|
||||
func (m *SyncSetting) GetClock() uint64 {
|
||||
func (x *SyncSetting) GetClock() uint64 {
|
||||
if x != nil {
|
||||
return x.Clock
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *SyncSetting) GetValue() isSyncSetting_Value {
|
||||
if m != nil {
|
||||
return m.Clock
|
||||
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 0
|
||||
}
|
||||
|
@ -181,98 +245,134 @@ func (*SyncSetting_ValueBool) isSyncSetting_Value() {}
|
|||
|
||||
func (*SyncSetting_ValueInt64) isSyncSetting_Value() {}
|
||||
|
||||
func (m *SyncSetting) GetValue() isSyncSetting_Value {
|
||||
if m != nil {
|
||||
return m.Value
|
||||
}
|
||||
return nil
|
||||
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,
|
||||
}
|
||||
|
||||
func (m *SyncSetting) GetValueString() string {
|
||||
if x, ok := m.GetValue().(*SyncSetting_ValueString); ok {
|
||||
return x.ValueString
|
||||
}
|
||||
return ""
|
||||
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
|
||||
}
|
||||
|
||||
func (m *SyncSetting) GetValueBytes() []byte {
|
||||
if x, ok := m.GetValue().(*SyncSetting_ValueBytes); ok {
|
||||
return x.ValueBytes
|
||||
}
|
||||
return nil
|
||||
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 (m *SyncSetting) GetValueBool() bool {
|
||||
if x, ok := m.GetValue().(*SyncSetting_ValueBool); ok {
|
||||
return x.ValueBool
|
||||
func init() { file_sync_settings_proto_init() }
|
||||
func file_sync_settings_proto_init() {
|
||||
if File_sync_settings_proto != nil {
|
||||
return
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *SyncSetting) GetValueInt64() int64 {
|
||||
if x, ok := m.GetValue().(*SyncSetting_ValueInt64); ok {
|
||||
return x.ValueInt64
|
||||
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 0
|
||||
}
|
||||
|
||||
// XXX_OneofWrappers is for the internal use of the proto package.
|
||||
func (*SyncSetting) XXX_OneofWrappers() []interface{} {
|
||||
return []interface{}{
|
||||
file_sync_settings_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
(*SyncSetting_ValueString)(nil),
|
||||
(*SyncSetting_ValueBytes)(nil),
|
||||
(*SyncSetting_ValueBool)(nil),
|
||||
(*SyncSetting_ValueInt64)(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,
|
||||
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
|
||||
}
|
||||
|
|
|
@ -1,310 +1,455 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.24.3
|
||||
// source: url_data.proto
|
||||
|
||||
package protobuf
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
// 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
|
||||
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)
|
||||
)
|
||||
|
||||
type Community struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *Community) Reset() { *m = Community{} }
|
||||
func (m *Community) String() string { return proto.CompactTextString(m) }
|
||||
func (*Community) ProtoMessage() {}
|
||||
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 (*Community) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5f1e15b5f0115710, []int{0}
|
||||
return file_url_data_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *Community) GetDisplayName() string {
|
||||
if x != nil {
|
||||
return x.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Community) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
func (x *Community) GetDescription() string {
|
||||
if x != nil {
|
||||
return x.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Community) GetMembersCount() uint32 {
|
||||
if m != nil {
|
||||
return m.MembersCount
|
||||
func (x *Community) GetMembersCount() uint32 {
|
||||
if x != nil {
|
||||
return x.MembersCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Community) GetColor() string {
|
||||
if m != nil {
|
||||
return m.Color
|
||||
func (x *Community) GetColor() string {
|
||||
if x != nil {
|
||||
return x.Color
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Community) GetTagIndices() []uint32 {
|
||||
if m != nil {
|
||||
return m.TagIndices
|
||||
func (x *Community) GetTagIndices() []uint32 {
|
||||
if x != nil {
|
||||
return x.TagIndices
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Channel struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *Channel) Reset() { *m = Channel{} }
|
||||
func (m *Channel) String() string { return proto.CompactTextString(m) }
|
||||
func (*Channel) ProtoMessage() {}
|
||||
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 (*Channel) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5f1e15b5f0115710, []int{1}
|
||||
return file_url_data_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *Channel) GetDisplayName() string {
|
||||
if x != nil {
|
||||
return x.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Channel) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
func (x *Channel) GetDescription() string {
|
||||
if x != nil {
|
||||
return x.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Channel) GetEmoji() string {
|
||||
if m != nil {
|
||||
return m.Emoji
|
||||
func (x *Channel) GetEmoji() string {
|
||||
if x != nil {
|
||||
return x.Emoji
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Channel) GetColor() string {
|
||||
if m != nil {
|
||||
return m.Color
|
||||
func (x *Channel) GetColor() string {
|
||||
if x != nil {
|
||||
return x.Color
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Channel) GetCommunity() *Community {
|
||||
if m != nil {
|
||||
return m.Community
|
||||
func (x *Channel) GetCommunity() *Community {
|
||||
if x != nil {
|
||||
return x.Community
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Channel) GetUuid() string {
|
||||
if m != nil {
|
||||
return m.Uuid
|
||||
func (x *Channel) GetUuid() string {
|
||||
if x != nil {
|
||||
return x.Uuid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type User struct {
|
||||
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:"-"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (m *User) Reset() { *m = User{} }
|
||||
func (m *User) String() string { return proto.CompactTextString(m) }
|
||||
func (*User) ProtoMessage() {}
|
||||
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 (*User) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5f1e15b5f0115710, []int{2}
|
||||
return file_url_data_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *User) GetDisplayName() string {
|
||||
if x != nil {
|
||||
return x.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *User) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
func (x *User) GetDescription() string {
|
||||
if x != nil {
|
||||
return x.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *User) GetColor() string {
|
||||
if m != nil {
|
||||
return m.Color
|
||||
func (x *User) GetColor() string {
|
||||
if x != nil {
|
||||
return x.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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
||||
Shard *Shard `protobuf:"bytes,2,opt,name=shard,proto3" json:"shard,omitempty"`
|
||||
}
|
||||
|
||||
func (m *URLData) Reset() { *m = URLData{} }
|
||||
func (m *URLData) String() string { return proto.CompactTextString(m) }
|
||||
func (*URLData) ProtoMessage() {}
|
||||
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 (*URLData) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5f1e15b5f0115710, []int{3}
|
||||
return file_url_data_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
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
|
||||
func (x *URLData) GetContent() []byte {
|
||||
if x != nil {
|
||||
return x.Content
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *URLData) GetShard() *Shard {
|
||||
if m != nil {
|
||||
return m.Shard
|
||||
func (x *URLData) GetShard() *Shard {
|
||||
if x != nil {
|
||||
return x.Shard
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
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 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.RegisterFile("url_data.proto", fileDescriptor_5f1e15b5f0115710)
|
||||
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
|
||||
}
|
||||
|
||||
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,
|
||||
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
|
||||
}
|
||||
|
|
|
@ -93,6 +93,14 @@ func (api *API) GetTokenPreferences(ctx context.Context) ([]walletsettings.Token
|
|||
return (*api.messenger).GetTokenPreferences()
|
||||
}
|
||||
|
||||
func (api *API) UpdateCollectiblePreferences(ctx context.Context, preferences []walletsettings.CollectiblePreferences) error {
|
||||
return (*api.messenger).UpdateCollectiblePreferences(preferences)
|
||||
}
|
||||
|
||||
func (api *API) GetCollectiblePreferences(ctx context.Context) ([]walletsettings.CollectiblePreferences, error) {
|
||||
return (*api.messenger).GetCollectiblePreferences()
|
||||
}
|
||||
|
||||
func (api *API) GetAccounts(ctx context.Context) ([]*accounts.Account, error) {
|
||||
return api.db.GetActiveAccounts()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue