From 038132a331474c9c769cea9a5a28e036d1e9c173 Mon Sep 17 00:00:00 2001 From: zt64 <31907977+zt64@users.noreply.github.com> Date: Wed, 23 Oct 2024 22:39:37 -0400 Subject: [PATCH] Release Frecents plugin --- plugin/Frecents/README.md | 9 +- plugin/Frecents/build.gradle.kts | 4 +- .../java/FrecencyUserSettingsOuterClass.java | 15225 ++++++++-------- plugin/Frecents/src/main/kotlin/Frecents.kt | 418 - .../src/main/kotlin/frecents/Extensions.kt | 48 - .../src/main/kotlin/frecents/Resources.kt | 12 - .../frecents/gif/GifCategoryItemFavorites.kt | 5 - .../kotlin/frecents/sticker/FavoritesItem.kt | 7 - .../src/main/proto/FrecencyUserSettings.proto | 1 + 9 files changed, 7268 insertions(+), 8461 deletions(-) delete mode 100644 plugin/Frecents/src/main/kotlin/Frecents.kt delete mode 100644 plugin/Frecents/src/main/kotlin/frecents/Extensions.kt delete mode 100644 plugin/Frecents/src/main/kotlin/frecents/Resources.kt delete mode 100644 plugin/Frecents/src/main/kotlin/frecents/gif/GifCategoryItemFavorites.kt delete mode 100644 plugin/Frecents/src/main/kotlin/frecents/sticker/FavoritesItem.kt diff --git a/plugin/Frecents/README.md b/plugin/Frecents/README.md index f20ed74e..47bd8947 100644 --- a/plugin/Frecents/README.md +++ b/plugin/Frecents/README.md @@ -1,5 +1,12 @@ +## Protobuf Code Generation + Protobuf code is generated by invoking the following command from `src/main`: ```shell protoc --java_out=lite:java proto/FrecencyUserSettings.proto -``` \ No newline at end of file +``` + +Thank you Dolfies :blobcatcozy: +[discord-protos/FrecencyUserSettings.proto](https://github.com/dolfies/discord-protos/blob/master/discord_protos/FrecencyUserSettings.proto) + +Using [protocolbuffers/protobuf v29.0-rc2/java](https://github.com/protocolbuffers/protobuf/tree/v29.0-rc2/java) \ No newline at end of file diff --git a/plugin/Frecents/build.gradle.kts b/plugin/Frecents/build.gradle.kts index a30311c6..f7c9fe94 100644 --- a/plugin/Frecents/build.gradle.kts +++ b/plugin/Frecents/build.gradle.kts @@ -1,8 +1,10 @@ version = "1.0.0" -description = "Favorite GIFs & stickers" +description = "Adds support for favorite GIFs, emojis, stickers, and recent items" aliucord.excludeFromUpdaterJson.set(true) aliucord.changelog.set( """ + # 1.0.0 + - Initial release """.trimIndent() ) \ No newline at end of file diff --git a/plugin/Frecents/src/main/java/FrecencyUserSettingsOuterClass.java b/plugin/Frecents/src/main/java/FrecencyUserSettingsOuterClass.java index 962be15d..8d6310a6 100644 --- a/plugin/Frecents/src/main/java/FrecencyUserSettingsOuterClass.java +++ b/plugin/Frecents/src/main/java/FrecencyUserSettingsOuterClass.java @@ -1,8332 +1,7619 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: proto/FrecencyUserSettings.proto +// Protobuf Java Version: 4.28.2 -// Protobuf Java Version: 3.25.3 public final class FrecencyUserSettingsOuterClass { - static { - } - - private FrecencyUserSettingsOuterClass() { - } + private FrecencyUserSettingsOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public interface FrecencyUserSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:FrecencyUserSettings) + com.google.protobuf.MessageLiteOrBuilder { - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public interface FrecencyUserSettingsOrBuilder extends - // @@protoc_insertion_point(interface_extends:FrecencyUserSettings) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * optional .FrecencyUserSettings.Versions versions = 1; - * - * @return Whether the versions field is set. - */ - boolean hasVersions(); + /** + * optional .FrecencyUserSettings.Versions versions = 1; + * @return Whether the versions field is set. + */ + boolean hasVersions(); + /** + * optional .FrecencyUserSettings.Versions versions = 1; + * @return The versions. + */ + FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions getVersions(); - /** - * optional .FrecencyUserSettings.Versions versions = 1; - * - * @return The versions. - */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions getVersions(); + /** + * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; + * @return Whether the favoriteGifs field is set. + */ + boolean hasFavoriteGifs(); + /** + * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; + * @return The favoriteGifs. + */ + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs getFavoriteGifs(); - /** - * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; - * - * @return Whether the favoriteGifs field is set. - */ - boolean hasFavoriteGifs(); + /** + * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; + * @return Whether the favoriteStickers field is set. + */ + boolean hasFavoriteStickers(); + /** + * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; + * @return The favoriteStickers. + */ + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers getFavoriteStickers(); - /** - * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; - * - * @return The favoriteGifs. - */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs getFavoriteGifs(); + /** + * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; + * @return Whether the stickerFrecency field is set. + */ + boolean hasStickerFrecency(); + /** + * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; + * @return The stickerFrecency. + */ + FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency getStickerFrecency(); - /** - * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; - * - * @return Whether the favoriteStickers field is set. - */ - boolean hasFavoriteStickers(); + /** + * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; + * @return Whether the favoriteEmojis field is set. + */ + boolean hasFavoriteEmojis(); + /** + * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; + * @return The favoriteEmojis. + */ + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis getFavoriteEmojis(); - /** - * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; - * - * @return The favoriteStickers. - */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers getFavoriteStickers(); + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; + * @return Whether the emojiFrecency field is set. + */ + boolean hasEmojiFrecency(); + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; + * @return The emojiFrecency. + */ + FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency getEmojiFrecency(); - /** - * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; - * - * @return Whether the stickerFrecency field is set. - */ - boolean hasStickerFrecency(); + /** + * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; + * @return Whether the applicationCommandFrecency field is set. + */ + boolean hasApplicationCommandFrecency(); + /** + * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; + * @return The applicationCommandFrecency. + */ + FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency getApplicationCommandFrecency(); - /** - * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; - * - * @return The stickerFrecency. - */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency getStickerFrecency(); + /** + * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; + * @return Whether the favoriteSoundboardSounds field is set. + */ + boolean hasFavoriteSoundboardSounds(); + /** + * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; + * @return The favoriteSoundboardSounds. + */ + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds getFavoriteSoundboardSounds(); - /** - * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; - * - * @return Whether the favoriteEmojis field is set. - */ - boolean hasFavoriteEmojis(); + /** + * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; + * @return Whether the applicationFrecency field is set. + */ + boolean hasApplicationFrecency(); + /** + * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; + * @return The applicationFrecency. + */ + FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency getApplicationFrecency(); - /** - * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; - * - * @return The favoriteEmojis. - */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis getFavoriteEmojis(); + /** + * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; + * @return Whether the heardSoundFrecency field is set. + */ + boolean hasHeardSoundFrecency(); + /** + * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; + * @return The heardSoundFrecency. + */ + FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency getHeardSoundFrecency(); - /** - * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; - * - * @return Whether the emojiFrecency field is set. - */ - boolean hasEmojiFrecency(); + /** + * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; + * @return Whether the playedSoundFrecency field is set. + */ + boolean hasPlayedSoundFrecency(); + /** + * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; + * @return The playedSoundFrecency. + */ + FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency getPlayedSoundFrecency(); - /** - * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; - * - * @return The emojiFrecency. - */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency getEmojiFrecency(); + /** + * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; + * @return Whether the guildAndChannelFrecency field is set. + */ + boolean hasGuildAndChannelFrecency(); + /** + * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; + * @return The guildAndChannelFrecency. + */ + FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency getGuildAndChannelFrecency(); - /** - * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; - * - * @return Whether the applicationCommandFrecency field is set. - */ - boolean hasApplicationCommandFrecency(); + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_reaction_frecency = 13; + * @return Whether the emojiReactionFrecency field is set. + */ + boolean hasEmojiReactionFrecency(); + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_reaction_frecency = 13; + * @return The emojiReactionFrecency. + */ + FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency getEmojiReactionFrecency(); + } + /** + * Protobuf type {@code FrecencyUserSettings} + */ + public static final class FrecencyUserSettings extends + com.google.protobuf.GeneratedMessageLite< + FrecencyUserSettings, FrecencyUserSettings.Builder> implements + // @@protoc_insertion_point(message_implements:FrecencyUserSettings) + FrecencyUserSettingsOrBuilder { + private FrecencyUserSettings() { + } + /** + * Protobuf enum {@code FrecencyUserSettings.GIFType} + */ + public enum GIFType + implements com.google.protobuf.Internal.EnumLite { + /** + * NONE = 0; + */ + NONE(0), + /** + * IMAGE = 1; + */ + IMAGE(1), + /** + * VIDEO = 2; + */ + VIDEO(2), + UNRECOGNIZED(-1), + ; + + /** + * NONE = 0; + */ + public static final int NONE_VALUE = 0; + /** + * IMAGE = 1; + */ + public static final int IMAGE_VALUE = 1; + /** + * VIDEO = 2; + */ + public static final int VIDEO_VALUE = 2; + + + @java.lang.Override + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GIFType valueOf(int value) { + return forNumber(value); + } + + public static GIFType forNumber(int value) { + switch (value) { + case 0: return NONE; + case 1: return IMAGE; + case 2: return VIDEO; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + GIFType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override + public GIFType findValueByNumber(int number) { + return GIFType.forNumber(number); + } + }; + + public static com.google.protobuf.Internal.EnumVerifier + internalGetVerifier() { + return GIFTypeVerifier.INSTANCE; + } + + private static final class GIFTypeVerifier implements + com.google.protobuf.Internal.EnumVerifier { + static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new GIFTypeVerifier(); + @java.lang.Override + public boolean isInRange(int number) { + return GIFType.forNumber(number) != null; + } + } + + private final int value; + + GIFType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:FrecencyUserSettings.GIFType) + } - /** - * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; - * - * @return The applicationCommandFrecency. - */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency getApplicationCommandFrecency(); + public interface VersionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.Versions) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * uint32 client_version = 1; + * @return The clientVersion. + */ + int getClientVersion(); + + /** + * uint32 server_version = 2; + * @return The serverVersion. + */ + int getServerVersion(); + + /** + * uint32 data_version = 3; + * @return The dataVersion. + */ + int getDataVersion(); + } + /** + * Protobuf type {@code FrecencyUserSettings.Versions} + */ + public static final class Versions extends + com.google.protobuf.GeneratedMessageLite< + Versions, Versions.Builder> implements + // @@protoc_insertion_point(message_implements:FrecencyUserSettings.Versions) + VersionsOrBuilder { + private Versions() { + } + public static final int CLIENT_VERSION_FIELD_NUMBER = 1; + private int clientVersion_; + /** + * uint32 client_version = 1; + * @return The clientVersion. + */ + @java.lang.Override + public int getClientVersion() { + return clientVersion_; + } + /** + * uint32 client_version = 1; + * @param value The clientVersion to set. + */ + private void setClientVersion(int value) { + + clientVersion_ = value; + } + /** + * uint32 client_version = 1; + */ + private void clearClientVersion() { + + clientVersion_ = 0; + } + + public static final int SERVER_VERSION_FIELD_NUMBER = 2; + private int serverVersion_; + /** + * uint32 server_version = 2; + * @return The serverVersion. + */ + @java.lang.Override + public int getServerVersion() { + return serverVersion_; + } + /** + * uint32 server_version = 2; + * @param value The serverVersion to set. + */ + private void setServerVersion(int value) { + + serverVersion_ = value; + } + /** + * uint32 server_version = 2; + */ + private void clearServerVersion() { + + serverVersion_ = 0; + } + + public static final int DATA_VERSION_FIELD_NUMBER = 3; + private int dataVersion_; + /** + * uint32 data_version = 3; + * @return The dataVersion. + */ + @java.lang.Override + public int getDataVersion() { + return dataVersion_; + } + /** + * uint32 data_version = 3; + * @param value The dataVersion to set. + */ + private void setDataVersion(int value) { + + dataVersion_ = value; + } + /** + * uint32 data_version = 3; + */ + private void clearDataVersion() { + + dataVersion_ = 0; + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions prototype) { + return DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + * Protobuf type {@code FrecencyUserSettings.Versions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions, Builder> implements + // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.Versions) + FrecencyUserSettingsOuterClass.FrecencyUserSettings.VersionsOrBuilder { + // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } - /** - * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; - * - * @return Whether the favoriteSoundboardSounds field is set. - */ - boolean hasFavoriteSoundboardSounds(); /** - * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; - * - * @return The favoriteSoundboardSounds. + * uint32 client_version = 1; + * @return The clientVersion. */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds getFavoriteSoundboardSounds(); - + @java.lang.Override + public int getClientVersion() { + return instance.getClientVersion(); + } /** - * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; - * - * @return Whether the applicationFrecency field is set. + * uint32 client_version = 1; + * @param value The clientVersion to set. + * @return This builder for chaining. */ - boolean hasApplicationFrecency(); - + public Builder setClientVersion(int value) { + copyOnWrite(); + instance.setClientVersion(value); + return this; + } /** - * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; - * - * @return The applicationFrecency. + * uint32 client_version = 1; + * @return This builder for chaining. */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency getApplicationFrecency(); + public Builder clearClientVersion() { + copyOnWrite(); + instance.clearClientVersion(); + return this; + } /** - * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; - * - * @return Whether the heardSoundFrecency field is set. + * uint32 server_version = 2; + * @return The serverVersion. */ - boolean hasHeardSoundFrecency(); - + @java.lang.Override + public int getServerVersion() { + return instance.getServerVersion(); + } /** - * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; - * - * @return The heardSoundFrecency. + * uint32 server_version = 2; + * @param value The serverVersion to set. + * @return This builder for chaining. */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency getHeardSoundFrecency(); - + public Builder setServerVersion(int value) { + copyOnWrite(); + instance.setServerVersion(value); + return this; + } /** - * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; - * - * @return Whether the playedSoundFrecency field is set. + * uint32 server_version = 2; + * @return This builder for chaining. */ - boolean hasPlayedSoundFrecency(); + public Builder clearServerVersion() { + copyOnWrite(); + instance.clearServerVersion(); + return this; + } /** - * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; - * - * @return The playedSoundFrecency. + * uint32 data_version = 3; + * @return The dataVersion. */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency getPlayedSoundFrecency(); - + @java.lang.Override + public int getDataVersion() { + return instance.getDataVersion(); + } /** - * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; - * - * @return Whether the guildAndChannelFrecency field is set. + * uint32 data_version = 3; + * @param value The dataVersion to set. + * @return This builder for chaining. */ - boolean hasGuildAndChannelFrecency(); - + public Builder setDataVersion(int value) { + copyOnWrite(); + instance.setDataVersion(value); + return this; + } /** - * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; - * - * @return The guildAndChannelFrecency. + * uint32 data_version = 3; + * @return This builder for chaining. */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency getGuildAndChannelFrecency(); - } - - /** - * Protobuf type {@code FrecencyUserSettings} - */ - public static final class FrecencyUserSettings extends - com.google.protobuf.GeneratedMessageLite< - FrecencyUserSettings, FrecencyUserSettings.Builder> implements - // @@protoc_insertion_point(message_implements:FrecencyUserSettings) - FrecencyUserSettingsOrBuilder { - public static final int VERSIONS_FIELD_NUMBER = 1; - public static final int FAVORITE_GIFS_FIELD_NUMBER = 2; - public static final int FAVORITE_STICKERS_FIELD_NUMBER = 3; - public static final int STICKER_FRECENCY_FIELD_NUMBER = 4; - public static final int FAVORITE_EMOJIS_FIELD_NUMBER = 5; - public static final int EMOJI_FRECENCY_FIELD_NUMBER = 6; - public static final int APPLICATION_COMMAND_FRECENCY_FIELD_NUMBER = 7; - public static final int FAVORITE_SOUNDBOARD_SOUNDS_FIELD_NUMBER = 8; - public static final int APPLICATION_FRECENCY_FIELD_NUMBER = 9; - public static final int HEARD_SOUND_FRECENCY_FIELD_NUMBER = 10; - public static final int PLAYED_SOUND_FRECENCY_FIELD_NUMBER = 11; - public static final int GUILD_AND_CHANNEL_FRECENCY_FIELD_NUMBER = 12; - // @@protoc_insertion_point(class_scope:FrecencyUserSettings) - private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings DEFAULT_INSTANCE; - private static volatile com.google.protobuf.Parser PARSER; - - static { - FrecencyUserSettings defaultInstance = new FrecencyUserSettings(); - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = defaultInstance; - com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( - FrecencyUserSettings.class, defaultInstance); - } - - private int bitField0_; - private FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions versions_; - private FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs favoriteGifs_; - private FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers favoriteStickers_; - private FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency stickerFrecency_; - private FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis favoriteEmojis_; - private FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency emojiFrecency_; - private FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency applicationCommandFrecency_; - private FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds favoriteSoundboardSounds_; - private FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency applicationFrecency_; - private FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency heardSoundFrecency_; - private FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency playedSoundFrecency_; - private FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency guildAndChannelFrecency_; - - private FrecencyUserSettings() { - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + public Builder clearDataVersion() { + copyOnWrite(); + instance.clearDataVersion(); + return this; } - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.Versions) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions(); + } + case NEW_BUILDER: { + return new Builder(); + } + case BUILD_MESSAGE_INFO: { + java.lang.Object[] objects = new java.lang.Object[] { + "clientVersion_", + "serverVersion_", + "dataVersion_", + }; + java.lang.String info = + "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u000b\u0002\u000b" + + "\u0003\u000b"; + return newMessageInfo(DEFAULT_INSTANCE, info, objects); + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions.class) { + parser = PARSER; + if (parser == null) { + parser = + new DefaultInstanceBasedParser( + DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.createBuilder(); + case SET_MEMOIZED_IS_INITIALIZED: { + return null; } - - public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings prototype) { - return DEFAULT_INSTANCE.createBuilder(prototype); } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:FrecencyUserSettings.Versions) + private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions DEFAULT_INSTANCE; + static { + Versions defaultInstance = new Versions(); + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = defaultInstance; + com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( + Versions.class, defaultInstance); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings getDefaultInstance() { - return DEFAULT_INSTANCE; + public interface FavoriteGIFOrBuilder extends + // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.FavoriteGIF) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * .FrecencyUserSettings.GIFType format = 1; + * @return The enum numeric value on the wire for format. + */ + int getFormatValue(); + /** + * .FrecencyUserSettings.GIFType format = 1; + * @return The format. + */ + FrecencyUserSettingsOuterClass.FrecencyUserSettings.GIFType getFormat(); + + /** + * string src = 2; + * @return The src. + */ + java.lang.String getSrc(); + /** + * string src = 2; + * @return The bytes for src. + */ + com.google.protobuf.ByteString + getSrcBytes(); + + /** + * uint32 width = 3; + * @return The width. + */ + int getWidth(); + + /** + * uint32 height = 4; + * @return The height. + */ + int getHeight(); + + /** + * uint32 order = 5; + * @return The order. + */ + int getOrder(); + } + /** + * Protobuf type {@code FrecencyUserSettings.FavoriteGIF} + */ + public static final class FavoriteGIF extends + com.google.protobuf.GeneratedMessageLite< + FavoriteGIF, FavoriteGIF.Builder> implements + // @@protoc_insertion_point(message_implements:FrecencyUserSettings.FavoriteGIF) + FavoriteGIFOrBuilder { + private FavoriteGIF() { + src_ = ""; + } + public static final int FORMAT_FIELD_NUMBER = 1; + private int format_; + /** + * .FrecencyUserSettings.GIFType format = 1; + * @return The enum numeric value on the wire for format. + */ + @java.lang.Override + public int getFormatValue() { + return format_; + } + /** + * .FrecencyUserSettings.GIFType format = 1; + * @return The format. + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.GIFType getFormat() { + FrecencyUserSettingsOuterClass.FrecencyUserSettings.GIFType result = FrecencyUserSettingsOuterClass.FrecencyUserSettings.GIFType.forNumber(format_); + return result == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.GIFType.UNRECOGNIZED : result; + } + /** + * .FrecencyUserSettings.GIFType format = 1; + * @param value The enum numeric value on the wire for format to set. + */ + private void setFormatValue(int value) { + format_ = value; + } + /** + * .FrecencyUserSettings.GIFType format = 1; + * @param value The format to set. + */ + private void setFormat(FrecencyUserSettingsOuterClass.FrecencyUserSettings.GIFType value) { + format_ = value.getNumber(); + + } + /** + * .FrecencyUserSettings.GIFType format = 1; + */ + private void clearFormat() { + + format_ = 0; + } + + public static final int SRC_FIELD_NUMBER = 2; + private java.lang.String src_; + /** + * string src = 2; + * @return The src. + */ + @java.lang.Override + public java.lang.String getSrc() { + return src_; + } + /** + * string src = 2; + * @return The bytes for src. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSrcBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(src_); + } + /** + * string src = 2; + * @param value The src to set. + */ + private void setSrc( + java.lang.String value) { + java.lang.Class valueClass = value.getClass(); + + src_ = value; + } + /** + * string src = 2; + */ + private void clearSrc() { + + src_ = getDefaultInstance().getSrc(); + } + /** + * string src = 2; + * @param value The bytes for src to set. + */ + private void setSrcBytes( + com.google.protobuf.ByteString value) { + checkByteStringIsUtf8(value); + src_ = value.toStringUtf8(); + + } + + public static final int WIDTH_FIELD_NUMBER = 3; + private int width_; + /** + * uint32 width = 3; + * @return The width. + */ + @java.lang.Override + public int getWidth() { + return width_; + } + /** + * uint32 width = 3; + * @param value The width to set. + */ + private void setWidth(int value) { + + width_ = value; + } + /** + * uint32 width = 3; + */ + private void clearWidth() { + + width_ = 0; + } + + public static final int HEIGHT_FIELD_NUMBER = 4; + private int height_; + /** + * uint32 height = 4; + * @return The height. + */ + @java.lang.Override + public int getHeight() { + return height_; + } + /** + * uint32 height = 4; + * @param value The height to set. + */ + private void setHeight(int value) { + + height_ = value; + } + /** + * uint32 height = 4; + */ + private void clearHeight() { + + height_ = 0; + } + + public static final int ORDER_FIELD_NUMBER = 5; + private int order_; + /** + * uint32 order = 5; + * @return The order. + */ + @java.lang.Override + public int getOrder() { + return order_; + } + /** + * uint32 order = 5; + * @param value The order to set. + */ + private void setOrder(int value) { + + order_ = value; + } + /** + * uint32 order = 5; + */ + private void clearOrder() { + + order_ = 0; + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF prototype) { + return DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + * Protobuf type {@code FrecencyUserSettings.FavoriteGIF} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF, Builder> implements + // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.FavoriteGIF) + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFOrBuilder { + // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); } - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } /** - * optional .FrecencyUserSettings.Versions versions = 1; + * .FrecencyUserSettings.GIFType format = 1; + * @return The enum numeric value on the wire for format. */ @java.lang.Override - public boolean hasVersions() { - return ((bitField0_ & 0x00000001) != 0); + public int getFormatValue() { + return instance.getFormatValue(); } - /** - * optional .FrecencyUserSettings.Versions versions = 1; + * .FrecencyUserSettings.GIFType format = 1; + * @param value The format to set. + * @return This builder for chaining. */ - @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions getVersions() { - return versions_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions.getDefaultInstance() : versions_; + public Builder setFormatValue(int value) { + copyOnWrite(); + instance.setFormatValue(value); + return this; } - /** - * optional .FrecencyUserSettings.Versions versions = 1; + * .FrecencyUserSettings.GIFType format = 1; + * @return The format. */ - private void setVersions(FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions value) { - value.getClass(); - versions_ = value; - bitField0_ |= 0x00000001; + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.GIFType getFormat() { + return instance.getFormat(); } - /** - * optional .FrecencyUserSettings.Versions versions = 1; + * .FrecencyUserSettings.GIFType format = 1; + * @param value The enum numeric value on the wire for format to set. + * @return This builder for chaining. */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeVersions(FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions value) { - value.getClass(); - if (versions_ != null && - versions_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions.getDefaultInstance()) { - versions_ = - FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions.newBuilder(versions_).mergeFrom(value).buildPartial(); - } else { - versions_ = value; - } - bitField0_ |= 0x00000001; + public Builder setFormat(FrecencyUserSettingsOuterClass.FrecencyUserSettings.GIFType value) { + copyOnWrite(); + instance.setFormat(value); + return this; } - /** - * optional .FrecencyUserSettings.Versions versions = 1; + * .FrecencyUserSettings.GIFType format = 1; + * @return This builder for chaining. */ - private void clearVersions() { - versions_ = null; - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearFormat() { + copyOnWrite(); + instance.clearFormat(); + return this; } /** - * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; + * string src = 2; + * @return The src. */ @java.lang.Override - public boolean hasFavoriteGifs() { - return ((bitField0_ & 0x00000002) != 0); + public java.lang.String getSrc() { + return instance.getSrc(); } - /** - * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; + * string src = 2; + * @return The bytes for src. */ @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs getFavoriteGifs() { - return favoriteGifs_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs.getDefaultInstance() : favoriteGifs_; + public com.google.protobuf.ByteString + getSrcBytes() { + return instance.getSrcBytes(); } - /** - * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; + * string src = 2; + * @param value The src to set. + * @return This builder for chaining. */ - private void setFavoriteGifs(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs value) { - value.getClass(); - favoriteGifs_ = value; - bitField0_ |= 0x00000002; + public Builder setSrc( + java.lang.String value) { + copyOnWrite(); + instance.setSrc(value); + return this; } - /** - * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; + * string src = 2; + * @return This builder for chaining. */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeFavoriteGifs(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs value) { - value.getClass(); - if (favoriteGifs_ != null && - favoriteGifs_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs.getDefaultInstance()) { - favoriteGifs_ = - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs.newBuilder(favoriteGifs_).mergeFrom(value).buildPartial(); - } else { - favoriteGifs_ = value; - } - bitField0_ |= 0x00000002; + public Builder clearSrc() { + copyOnWrite(); + instance.clearSrc(); + return this; } - /** - * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; + * string src = 2; + * @param value The bytes for src to set. + * @return This builder for chaining. */ - private void clearFavoriteGifs() { - favoriteGifs_ = null; - bitField0_ = (bitField0_ & ~0x00000002); + public Builder setSrcBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setSrcBytes(value); + return this; } /** - * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; + * uint32 width = 3; + * @return The width. */ @java.lang.Override - public boolean hasFavoriteStickers() { - return ((bitField0_ & 0x00000004) != 0); + public int getWidth() { + return instance.getWidth(); } - /** - * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; + * uint32 width = 3; + * @param value The width to set. + * @return This builder for chaining. */ - @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers getFavoriteStickers() { - return favoriteStickers_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers.getDefaultInstance() : favoriteStickers_; + public Builder setWidth(int value) { + copyOnWrite(); + instance.setWidth(value); + return this; } - /** - * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; + * uint32 width = 3; + * @return This builder for chaining. */ - private void setFavoriteStickers(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers value) { - value.getClass(); - favoriteStickers_ = value; - bitField0_ |= 0x00000004; + public Builder clearWidth() { + copyOnWrite(); + instance.clearWidth(); + return this; } /** - * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; + * uint32 height = 4; + * @return The height. */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeFavoriteStickers(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers value) { - value.getClass(); - if (favoriteStickers_ != null && - favoriteStickers_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers.getDefaultInstance()) { - favoriteStickers_ = - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers.newBuilder(favoriteStickers_).mergeFrom(value).buildPartial(); - } else { - favoriteStickers_ = value; - } - bitField0_ |= 0x00000004; + @java.lang.Override + public int getHeight() { + return instance.getHeight(); } - /** - * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; + * uint32 height = 4; + * @param value The height to set. + * @return This builder for chaining. */ - private void clearFavoriteStickers() { - favoriteStickers_ = null; - bitField0_ = (bitField0_ & ~0x00000004); + public Builder setHeight(int value) { + copyOnWrite(); + instance.setHeight(value); + return this; } - /** - * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; + * uint32 height = 4; + * @return This builder for chaining. */ - @java.lang.Override - public boolean hasStickerFrecency() { - return ((bitField0_ & 0x00000008) != 0); + public Builder clearHeight() { + copyOnWrite(); + instance.clearHeight(); + return this; } /** - * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; + * uint32 order = 5; + * @return The order. */ @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency getStickerFrecency() { - return stickerFrecency_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency.getDefaultInstance() : stickerFrecency_; + public int getOrder() { + return instance.getOrder(); } - /** - * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; + * uint32 order = 5; + * @param value The order to set. + * @return This builder for chaining. */ - private void setStickerFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency value) { - value.getClass(); - stickerFrecency_ = value; - bitField0_ |= 0x00000008; + public Builder setOrder(int value) { + copyOnWrite(); + instance.setOrder(value); + return this; } - /** - * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; + * uint32 order = 5; + * @return This builder for chaining. */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeStickerFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency value) { - value.getClass(); - if (stickerFrecency_ != null && - stickerFrecency_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency.getDefaultInstance()) { - stickerFrecency_ = - FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency.newBuilder(stickerFrecency_).mergeFrom(value).buildPartial(); - } else { - stickerFrecency_ = value; - } - bitField0_ |= 0x00000008; + public Builder clearOrder() { + copyOnWrite(); + instance.clearOrder(); + return this; } - /** - * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; - */ - private void clearStickerFrecency() { - stickerFrecency_ = null; - bitField0_ = (bitField0_ & ~0x00000008); + // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.FavoriteGIF) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF(); + } + case NEW_BUILDER: { + return new Builder(); + } + case BUILD_MESSAGE_INFO: { + java.lang.Object[] objects = new java.lang.Object[] { + "format_", + "src_", + "width_", + "height_", + "order_", + }; + java.lang.String info = + "\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0000\u0000\u0000\u0001\f\u0002\u0208" + + "\u0003\u000b\u0004\u000b\u0005\u000b"; + return newMessageInfo(DEFAULT_INSTANCE, info, objects); + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF.class) { + parser = PARSER; + if (parser == null) { + parser = + new DefaultInstanceBasedParser( + DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:FrecencyUserSettings.FavoriteGIF) + private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF DEFAULT_INSTANCE; + static { + FavoriteGIF defaultInstance = new FavoriteGIF(); + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = defaultInstance; + com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( + FavoriteGIF.class, defaultInstance); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } - /** - * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; - */ - @java.lang.Override - public boolean hasFavoriteEmojis() { - return ((bitField0_ & 0x00000010) != 0); + public interface FavoriteGIFsOrBuilder extends + // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.FavoriteGIFs) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; + */ + int getGifsCount(); + /** + * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; + */ + boolean containsGifs( + java.lang.String key); + /** + * Use {@link #getGifsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getGifs(); + /** + * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; + */ + java.util.Map + getGifsMap(); + /** + * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; + */ + + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF getGifsOrDefault( + java.lang.String key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF defaultValue); + /** + * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; + */ + + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF getGifsOrThrow( + java.lang.String key); + + /** + * bool hide_tooltip = 2; + * @return The hideTooltip. + */ + boolean getHideTooltip(); + } + /** + * Protobuf type {@code FrecencyUserSettings.FavoriteGIFs} + */ + public static final class FavoriteGIFs extends + com.google.protobuf.GeneratedMessageLite< + FavoriteGIFs, FavoriteGIFs.Builder> implements + // @@protoc_insertion_point(message_implements:FrecencyUserSettings.FavoriteGIFs) + FavoriteGIFsOrBuilder { + private FavoriteGIFs() { + } + public static final int GIFS_FIELD_NUMBER = 1; + private static final class GifsDefaultEntryHolder { + static final com.google.protobuf.MapEntryLite< + java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF> defaultEntry = + com.google.protobuf.MapEntryLite + .newDefaultInstance( + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF.getDefaultInstance()); + } + private com.google.protobuf.MapFieldLite< + java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF> gifs_ = + com.google.protobuf.MapFieldLite.emptyMapField(); + private com.google.protobuf.MapFieldLite + internalGetGifs() { + return gifs_; + } + private com.google.protobuf.MapFieldLite + internalGetMutableGifs() { + if (!gifs_.isMutable()) { + gifs_ = gifs_.mutableCopy(); + } + return gifs_; + } + @java.lang.Override + + public int getGifsCount() { + return internalGetGifs().size(); + } + /** + * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; + */ + @java.lang.Override + + public boolean containsGifs( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + return internalGetGifs().containsKey(key); + } + /** + * Use {@link #getGifsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getGifs() { + return getGifsMap(); + } + /** + * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; + */ + @java.lang.Override + + public java.util.Map getGifsMap() { + return java.util.Collections.unmodifiableMap( + internalGetGifs()); + } + /** + * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; + */ + @java.lang.Override + + public /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF getGifsOrDefault( + java.lang.String key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF defaultValue) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + internalGetGifs(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; + */ + @java.lang.Override + + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF getGifsOrThrow( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + internalGetGifs(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + /** + * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; + */ + private java.util.Map + getMutableGifsMap() { + return internalGetMutableGifs(); + } + + public static final int HIDE_TOOLTIP_FIELD_NUMBER = 2; + private boolean hideTooltip_; + /** + * bool hide_tooltip = 2; + * @return The hideTooltip. + */ + @java.lang.Override + public boolean getHideTooltip() { + return hideTooltip_; + } + /** + * bool hide_tooltip = 2; + * @param value The hideTooltip to set. + */ + private void setHideTooltip(boolean value) { + + hideTooltip_ = value; + } + /** + * bool hide_tooltip = 2; + */ + private void clearHideTooltip() { + + hideTooltip_ = false; + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs prototype) { + return DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + * Protobuf type {@code FrecencyUserSettings.FavoriteGIFs} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs, Builder> implements + // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.FavoriteGIFs) + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFsOrBuilder { + // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); } - /** - * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; - */ + @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis getFavoriteEmojis() { - return favoriteEmojis_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis.getDefaultInstance() : favoriteEmojis_; - } + public int getGifsCount() { + return instance.getGifsMap().size(); + } /** - * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; + * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; */ - private void setFavoriteEmojis(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis value) { - value.getClass(); - favoriteEmojis_ = value; - bitField0_ |= 0x00000010; + @java.lang.Override + + public boolean containsGifs( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + return instance.getGifsMap().containsKey(key); } + public Builder clearGifs() { + copyOnWrite(); + instance.getMutableGifsMap().clear(); + return this; + } /** - * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; + * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeFavoriteEmojis(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis value) { - value.getClass(); - if (favoriteEmojis_ != null && - favoriteEmojis_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis.getDefaultInstance()) { - favoriteEmojis_ = - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis.newBuilder(favoriteEmojis_).mergeFrom(value).buildPartial(); - } else { - favoriteEmojis_ = value; - } - bitField0_ |= 0x00000010; - } + public Builder removeGifs( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + copyOnWrite(); + instance.getMutableGifsMap().remove(key); + return this; + } /** - * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; + * Use {@link #getGifsMap()} instead. */ - private void clearFavoriteEmojis() { - favoriteEmojis_ = null; - bitField0_ = (bitField0_ & ~0x00000010); + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getGifs() { + return getGifsMap(); } - /** - * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; + * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; */ @java.lang.Override - public boolean hasEmojiFrecency() { - return ((bitField0_ & 0x00000020) != 0); + public java.util.Map getGifsMap() { + return java.util.Collections.unmodifiableMap( + instance.getGifsMap()); } - /** - * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; + * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; */ @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency getEmojiFrecency() { - return emojiFrecency_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency.getDefaultInstance() : emojiFrecency_; - } + public /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF getGifsOrDefault( + java.lang.String key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF defaultValue) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + instance.getGifsMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } /** - * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; + * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; */ - private void setEmojiFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency value) { - value.getClass(); - emojiFrecency_ = value; - bitField0_ |= 0x00000020; - } + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF getGifsOrThrow( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + instance.getGifsMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } /** - * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; + * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeEmojiFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency value) { - value.getClass(); - if (emojiFrecency_ != null && - emojiFrecency_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency.getDefaultInstance()) { - emojiFrecency_ = - FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency.newBuilder(emojiFrecency_).mergeFrom(value).buildPartial(); - } else { - emojiFrecency_ = value; - } - bitField0_ |= 0x00000020; + public Builder putGifs( + java.lang.String key, + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF value) { + java.lang.Class keyClass = key.getClass(); + java.lang.Class valueClass = value.getClass(); + copyOnWrite(); + instance.getMutableGifsMap().put(key, value); + return this; } - /** - * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; + * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; */ - private void clearEmojiFrecency() { - emojiFrecency_ = null; - bitField0_ = (bitField0_ & ~0x00000020); + public Builder putAllGifs( + java.util.Map values) { + copyOnWrite(); + instance.getMutableGifsMap().putAll(values); + return this; } /** - * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; + * bool hide_tooltip = 2; + * @return The hideTooltip. */ @java.lang.Override - public boolean hasApplicationCommandFrecency() { - return ((bitField0_ & 0x00000040) != 0); + public boolean getHideTooltip() { + return instance.getHideTooltip(); } - /** - * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; + * bool hide_tooltip = 2; + * @param value The hideTooltip to set. + * @return This builder for chaining. */ - @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency getApplicationCommandFrecency() { - return applicationCommandFrecency_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency.getDefaultInstance() : applicationCommandFrecency_; + public Builder setHideTooltip(boolean value) { + copyOnWrite(); + instance.setHideTooltip(value); + return this; } - /** - * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; + * bool hide_tooltip = 2; + * @return This builder for chaining. */ - private void setApplicationCommandFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency value) { - value.getClass(); - applicationCommandFrecency_ = value; - bitField0_ |= 0x00000040; + public Builder clearHideTooltip() { + copyOnWrite(); + instance.clearHideTooltip(); + return this; } - /** - * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeApplicationCommandFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency value) { - value.getClass(); - if (applicationCommandFrecency_ != null && - applicationCommandFrecency_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency.getDefaultInstance()) { - applicationCommandFrecency_ = - FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency.newBuilder(applicationCommandFrecency_).mergeFrom(value).buildPartial(); - } else { - applicationCommandFrecency_ = value; - } - bitField0_ |= 0x00000040; + // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.FavoriteGIFs) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs(); + } + case NEW_BUILDER: { + return new Builder(); + } + case BUILD_MESSAGE_INFO: { + java.lang.Object[] objects = new java.lang.Object[] { + "gifs_", + GifsDefaultEntryHolder.defaultEntry, + "hideTooltip_", + }; + java.lang.String info = + "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0001\u0000\u0000\u00012\u0002\u0007"; + return newMessageInfo(DEFAULT_INSTANCE, info, objects); + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs.class) { + parser = PARSER; + if (parser == null) { + parser = + new DefaultInstanceBasedParser( + DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:FrecencyUserSettings.FavoriteGIFs) + private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs DEFAULT_INSTANCE; + static { + FavoriteGIFs defaultInstance = new FavoriteGIFs(); + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = defaultInstance; + com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( + FavoriteGIFs.class, defaultInstance); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface FavoriteStickersOrBuilder extends + // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.FavoriteStickers) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * repeated fixed64 sticker_ids = 1; + * @return A list containing the stickerIds. + */ + java.util.List getStickerIdsList(); + /** + * repeated fixed64 sticker_ids = 1; + * @return The count of stickerIds. + */ + int getStickerIdsCount(); + /** + * repeated fixed64 sticker_ids = 1; + * @param index The index of the element to return. + * @return The stickerIds at the given index. + */ + long getStickerIds(int index); + } + /** + * Protobuf type {@code FrecencyUserSettings.FavoriteStickers} + */ + public static final class FavoriteStickers extends + com.google.protobuf.GeneratedMessageLite< + FavoriteStickers, FavoriteStickers.Builder> implements + // @@protoc_insertion_point(message_implements:FrecencyUserSettings.FavoriteStickers) + FavoriteStickersOrBuilder { + private FavoriteStickers() { + stickerIds_ = emptyLongList(); + } + public static final int STICKER_IDS_FIELD_NUMBER = 1; + private com.google.protobuf.Internal.LongList stickerIds_; + /** + * repeated fixed64 sticker_ids = 1; + * @return A list containing the stickerIds. + */ + @java.lang.Override + public java.util.List + getStickerIdsList() { + return stickerIds_; + } + /** + * repeated fixed64 sticker_ids = 1; + * @return The count of stickerIds. + */ + @java.lang.Override + public int getStickerIdsCount() { + return stickerIds_.size(); + } + /** + * repeated fixed64 sticker_ids = 1; + * @param index The index of the element to return. + * @return The stickerIds at the given index. + */ + @java.lang.Override + public long getStickerIds(int index) { + return stickerIds_.getLong(index); + } + private final int stickerIdsMemoizedSerializedSize = -1; + private void ensureStickerIdsIsMutable() { + com.google.protobuf.Internal.LongList tmp = stickerIds_; + if (!tmp.isModifiable()) { + stickerIds_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); + } + } + /** + * repeated fixed64 sticker_ids = 1; + * @param index The index to set the value at. + * @param value The stickerIds to set. + */ + private void setStickerIds( + int index, long value) { + ensureStickerIdsIsMutable(); + stickerIds_.setLong(index, value); + } + /** + * repeated fixed64 sticker_ids = 1; + * @param value The stickerIds to add. + */ + private void addStickerIds(long value) { + ensureStickerIdsIsMutable(); + stickerIds_.addLong(value); + } + /** + * repeated fixed64 sticker_ids = 1; + * @param values The stickerIds to add. + */ + private void addAllStickerIds( + java.lang.Iterable values) { + ensureStickerIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, stickerIds_); + } + /** + * repeated fixed64 sticker_ids = 1; + */ + private void clearStickerIds() { + stickerIds_ = emptyLongList(); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers prototype) { + return DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + * Protobuf type {@code FrecencyUserSettings.FavoriteStickers} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers, Builder> implements + // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.FavoriteStickers) + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickersOrBuilder { + // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); } + /** - * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; + * repeated fixed64 sticker_ids = 1; + * @return A list containing the stickerIds. */ - private void clearApplicationCommandFrecency() { - applicationCommandFrecency_ = null; - bitField0_ = (bitField0_ & ~0x00000040); + @java.lang.Override + public java.util.List + getStickerIdsList() { + return java.util.Collections.unmodifiableList( + instance.getStickerIdsList()); } - /** - * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; + * repeated fixed64 sticker_ids = 1; + * @return The count of stickerIds. */ @java.lang.Override - public boolean hasFavoriteSoundboardSounds() { - return ((bitField0_ & 0x00000080) != 0); + public int getStickerIdsCount() { + return instance.getStickerIdsCount(); } - /** - * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; + * repeated fixed64 sticker_ids = 1; + * @param index The index of the element to return. + * @return The stickerIds at the given index. */ @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds getFavoriteSoundboardSounds() { - return favoriteSoundboardSounds_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds.getDefaultInstance() : favoriteSoundboardSounds_; + public long getStickerIds(int index) { + return instance.getStickerIds(index); } - /** - * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; + * repeated fixed64 sticker_ids = 1; + * @param value The stickerIds to set. + * @return This builder for chaining. */ - private void setFavoriteSoundboardSounds(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds value) { - value.getClass(); - favoriteSoundboardSounds_ = value; - bitField0_ |= 0x00000080; + public Builder setStickerIds( + int index, long value) { + copyOnWrite(); + instance.setStickerIds(index, value); + return this; } - /** - * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; + * repeated fixed64 sticker_ids = 1; + * @param value The stickerIds to add. + * @return This builder for chaining. */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeFavoriteSoundboardSounds(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds value) { - value.getClass(); - if (favoriteSoundboardSounds_ != null && - favoriteSoundboardSounds_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds.getDefaultInstance()) { - favoriteSoundboardSounds_ = - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds.newBuilder(favoriteSoundboardSounds_).mergeFrom(value).buildPartial(); - } else { - favoriteSoundboardSounds_ = value; - } - bitField0_ |= 0x00000080; + public Builder addStickerIds(long value) { + copyOnWrite(); + instance.addStickerIds(value); + return this; } - /** - * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; + * repeated fixed64 sticker_ids = 1; + * @param values The stickerIds to add. + * @return This builder for chaining. */ - private void clearFavoriteSoundboardSounds() { - favoriteSoundboardSounds_ = null; - bitField0_ = (bitField0_ & ~0x00000080); + public Builder addAllStickerIds( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllStickerIds(values); + return this; } - /** - * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; + * repeated fixed64 sticker_ids = 1; + * @return This builder for chaining. */ - @java.lang.Override - public boolean hasApplicationFrecency() { - return ((bitField0_ & 0x00000100) != 0); + public Builder clearStickerIds() { + copyOnWrite(); + instance.clearStickerIds(); + return this; + } + + // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.FavoriteStickers) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers(); + } + case NEW_BUILDER: { + return new Builder(); + } + case BUILD_MESSAGE_INFO: { + java.lang.Object[] objects = new java.lang.Object[] { + "stickerIds_", + }; + java.lang.String info = + "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001("; + return newMessageInfo(DEFAULT_INSTANCE, info, objects); + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers.class) { + parser = PARSER; + if (parser == null) { + parser = + new DefaultInstanceBasedParser( + DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:FrecencyUserSettings.FavoriteStickers) + private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers DEFAULT_INSTANCE; + static { + FavoriteStickers defaultInstance = new FavoriteStickers(); + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = defaultInstance; + com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( + FavoriteStickers.class, defaultInstance); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface FrecencyItemOrBuilder extends + // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.FrecencyItem) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * uint32 total_uses = 1; + * @return The totalUses. + */ + int getTotalUses(); + + /** + * repeated uint64 recent_uses = 2; + * @return A list containing the recentUses. + */ + java.util.List getRecentUsesList(); + /** + * repeated uint64 recent_uses = 2; + * @return The count of recentUses. + */ + int getRecentUsesCount(); + /** + * repeated uint64 recent_uses = 2; + * @param index The index of the element to return. + * @return The recentUses at the given index. + */ + long getRecentUses(int index); + + /** + * int32 frecency = 3; + * @return The frecency. + */ + int getFrecency(); + + /** + * int32 score = 4; + * @return The score. + */ + int getScore(); + } + /** + * Protobuf type {@code FrecencyUserSettings.FrecencyItem} + */ + public static final class FrecencyItem extends + com.google.protobuf.GeneratedMessageLite< + FrecencyItem, FrecencyItem.Builder> implements + // @@protoc_insertion_point(message_implements:FrecencyUserSettings.FrecencyItem) + FrecencyItemOrBuilder { + private FrecencyItem() { + recentUses_ = emptyLongList(); + } + public static final int TOTAL_USES_FIELD_NUMBER = 1; + private int totalUses_; + /** + * uint32 total_uses = 1; + * @return The totalUses. + */ + @java.lang.Override + public int getTotalUses() { + return totalUses_; + } + /** + * uint32 total_uses = 1; + * @param value The totalUses to set. + */ + private void setTotalUses(int value) { + + totalUses_ = value; + } + /** + * uint32 total_uses = 1; + */ + private void clearTotalUses() { + + totalUses_ = 0; + } + + public static final int RECENT_USES_FIELD_NUMBER = 2; + private com.google.protobuf.Internal.LongList recentUses_; + /** + * repeated uint64 recent_uses = 2; + * @return A list containing the recentUses. + */ + @java.lang.Override + public java.util.List + getRecentUsesList() { + return recentUses_; + } + /** + * repeated uint64 recent_uses = 2; + * @return The count of recentUses. + */ + @java.lang.Override + public int getRecentUsesCount() { + return recentUses_.size(); + } + /** + * repeated uint64 recent_uses = 2; + * @param index The index of the element to return. + * @return The recentUses at the given index. + */ + @java.lang.Override + public long getRecentUses(int index) { + return recentUses_.getLong(index); + } + private final int recentUsesMemoizedSerializedSize = -1; + private void ensureRecentUsesIsMutable() { + com.google.protobuf.Internal.LongList tmp = recentUses_; + if (!tmp.isModifiable()) { + recentUses_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); + } + } + /** + * repeated uint64 recent_uses = 2; + * @param index The index to set the value at. + * @param value The recentUses to set. + */ + private void setRecentUses( + int index, long value) { + ensureRecentUsesIsMutable(); + recentUses_.setLong(index, value); + } + /** + * repeated uint64 recent_uses = 2; + * @param value The recentUses to add. + */ + private void addRecentUses(long value) { + ensureRecentUsesIsMutable(); + recentUses_.addLong(value); + } + /** + * repeated uint64 recent_uses = 2; + * @param values The recentUses to add. + */ + private void addAllRecentUses( + java.lang.Iterable values) { + ensureRecentUsesIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, recentUses_); + } + /** + * repeated uint64 recent_uses = 2; + */ + private void clearRecentUses() { + recentUses_ = emptyLongList(); + } + + public static final int FRECENCY_FIELD_NUMBER = 3; + private int frecency_; + /** + * int32 frecency = 3; + * @return The frecency. + */ + @java.lang.Override + public int getFrecency() { + return frecency_; + } + /** + * int32 frecency = 3; + * @param value The frecency to set. + */ + private void setFrecency(int value) { + + frecency_ = value; + } + /** + * int32 frecency = 3; + */ + private void clearFrecency() { + + frecency_ = 0; + } + + public static final int SCORE_FIELD_NUMBER = 4; + private int score_; + /** + * int32 score = 4; + * @return The score. + */ + @java.lang.Override + public int getScore() { + return score_; + } + /** + * int32 score = 4; + * @param value The score to set. + */ + private void setScore(int value) { + + score_ = value; + } + /** + * int32 score = 4; + */ + private void clearScore() { + + score_ = 0; + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem prototype) { + return DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + * Protobuf type {@code FrecencyUserSettings.FrecencyItem} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem, Builder> implements + // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.FrecencyItem) + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItemOrBuilder { + // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); } + /** - * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; + * uint32 total_uses = 1; + * @return The totalUses. */ @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency getApplicationFrecency() { - return applicationFrecency_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency.getDefaultInstance() : applicationFrecency_; + public int getTotalUses() { + return instance.getTotalUses(); } - /** - * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; + * uint32 total_uses = 1; + * @param value The totalUses to set. + * @return This builder for chaining. */ - private void setApplicationFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency value) { - value.getClass(); - applicationFrecency_ = value; - bitField0_ |= 0x00000100; + public Builder setTotalUses(int value) { + copyOnWrite(); + instance.setTotalUses(value); + return this; } - /** - * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; + * uint32 total_uses = 1; + * @return This builder for chaining. */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeApplicationFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency value) { - value.getClass(); - if (applicationFrecency_ != null && - applicationFrecency_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency.getDefaultInstance()) { - applicationFrecency_ = - FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency.newBuilder(applicationFrecency_).mergeFrom(value).buildPartial(); - } else { - applicationFrecency_ = value; - } - bitField0_ |= 0x00000100; + public Builder clearTotalUses() { + copyOnWrite(); + instance.clearTotalUses(); + return this; } /** - * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; + * repeated uint64 recent_uses = 2; + * @return A list containing the recentUses. */ - private void clearApplicationFrecency() { - applicationFrecency_ = null; - bitField0_ = (bitField0_ & ~0x00000100); + @java.lang.Override + public java.util.List + getRecentUsesList() { + return java.util.Collections.unmodifiableList( + instance.getRecentUsesList()); } - /** - * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; + * repeated uint64 recent_uses = 2; + * @return The count of recentUses. */ @java.lang.Override - public boolean hasHeardSoundFrecency() { - return ((bitField0_ & 0x00000200) != 0); + public int getRecentUsesCount() { + return instance.getRecentUsesCount(); } - /** - * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; + * repeated uint64 recent_uses = 2; + * @param index The index of the element to return. + * @return The recentUses at the given index. */ @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency getHeardSoundFrecency() { - return heardSoundFrecency_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency.getDefaultInstance() : heardSoundFrecency_; + public long getRecentUses(int index) { + return instance.getRecentUses(index); } - /** - * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; + * repeated uint64 recent_uses = 2; + * @param value The recentUses to set. + * @return This builder for chaining. */ - private void setHeardSoundFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency value) { - value.getClass(); - heardSoundFrecency_ = value; - bitField0_ |= 0x00000200; + public Builder setRecentUses( + int index, long value) { + copyOnWrite(); + instance.setRecentUses(index, value); + return this; } - /** - * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; + * repeated uint64 recent_uses = 2; + * @param value The recentUses to add. + * @return This builder for chaining. */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeHeardSoundFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency value) { - value.getClass(); - if (heardSoundFrecency_ != null && - heardSoundFrecency_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency.getDefaultInstance()) { - heardSoundFrecency_ = - FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency.newBuilder(heardSoundFrecency_).mergeFrom(value).buildPartial(); - } else { - heardSoundFrecency_ = value; - } - bitField0_ |= 0x00000200; + public Builder addRecentUses(long value) { + copyOnWrite(); + instance.addRecentUses(value); + return this; } - /** - * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; + * repeated uint64 recent_uses = 2; + * @param values The recentUses to add. + * @return This builder for chaining. */ - private void clearHeardSoundFrecency() { - heardSoundFrecency_ = null; - bitField0_ = (bitField0_ & ~0x00000200); + public Builder addAllRecentUses( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllRecentUses(values); + return this; } - /** - * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; + * repeated uint64 recent_uses = 2; + * @return This builder for chaining. */ - @java.lang.Override - public boolean hasPlayedSoundFrecency() { - return ((bitField0_ & 0x00000400) != 0); + public Builder clearRecentUses() { + copyOnWrite(); + instance.clearRecentUses(); + return this; } /** - * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; + * int32 frecency = 3; + * @return The frecency. */ @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency getPlayedSoundFrecency() { - return playedSoundFrecency_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency.getDefaultInstance() : playedSoundFrecency_; + public int getFrecency() { + return instance.getFrecency(); } - /** - * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; + * int32 frecency = 3; + * @param value The frecency to set. + * @return This builder for chaining. */ - private void setPlayedSoundFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency value) { - value.getClass(); - playedSoundFrecency_ = value; - bitField0_ |= 0x00000400; + public Builder setFrecency(int value) { + copyOnWrite(); + instance.setFrecency(value); + return this; } - /** - * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; + * int32 frecency = 3; + * @return This builder for chaining. */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergePlayedSoundFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency value) { - value.getClass(); - if (playedSoundFrecency_ != null && - playedSoundFrecency_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency.getDefaultInstance()) { - playedSoundFrecency_ = - FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency.newBuilder(playedSoundFrecency_).mergeFrom(value).buildPartial(); - } else { - playedSoundFrecency_ = value; - } - bitField0_ |= 0x00000400; + public Builder clearFrecency() { + copyOnWrite(); + instance.clearFrecency(); + return this; } /** - * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; + * int32 score = 4; + * @return The score. */ - private void clearPlayedSoundFrecency() { - playedSoundFrecency_ = null; - bitField0_ = (bitField0_ & ~0x00000400); + @java.lang.Override + public int getScore() { + return instance.getScore(); } - /** - * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; + * int32 score = 4; + * @param value The score to set. + * @return This builder for chaining. */ - @java.lang.Override - public boolean hasGuildAndChannelFrecency() { - return ((bitField0_ & 0x00000800) != 0); + public Builder setScore(int value) { + copyOnWrite(); + instance.setScore(value); + return this; } - /** - * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; + * int32 score = 4; + * @return This builder for chaining. */ - @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency getGuildAndChannelFrecency() { - return guildAndChannelFrecency_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency.getDefaultInstance() : guildAndChannelFrecency_; + public Builder clearScore() { + copyOnWrite(); + instance.clearScore(); + return this; } - /** - * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; - */ - private void setGuildAndChannelFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency value) { - value.getClass(); - guildAndChannelFrecency_ = value; - bitField0_ |= 0x00000800; + // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.FrecencyItem) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem(); + } + case NEW_BUILDER: { + return new Builder(); + } + case BUILD_MESSAGE_INFO: { + java.lang.Object[] objects = new java.lang.Object[] { + "totalUses_", + "recentUses_", + "frecency_", + "score_", + }; + java.lang.String info = + "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0001\u0000\u0001\u000b\u0002&\u0003" + + "\u0004\u0004\u0004"; + return newMessageInfo(DEFAULT_INSTANCE, info, objects); + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem.class) { + parser = PARSER; + if (parser == null) { + parser = + new DefaultInstanceBasedParser( + DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; } - - /** - * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeGuildAndChannelFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency value) { - value.getClass(); - if (guildAndChannelFrecency_ != null && - guildAndChannelFrecency_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency.getDefaultInstance()) { - guildAndChannelFrecency_ = - FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency.newBuilder(guildAndChannelFrecency_).mergeFrom(value).buildPartial(); - } else { - guildAndChannelFrecency_ = value; - } - bitField0_ |= 0x00000800; + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; } - - /** - * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; - */ - private void clearGuildAndChannelFrecency() { - guildAndChannelFrecency_ = null; - bitField0_ = (bitField0_ & ~0x00000800); + case SET_MEMOIZED_IS_INITIALIZED: { + return null; } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:FrecencyUserSettings.FrecencyItem) + private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem DEFAULT_INSTANCE; + static { + FrecencyItem defaultInstance = new FrecencyItem(); + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = defaultInstance; + com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( + FrecencyItem.class, defaultInstance); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new FrecencyUserSettingsOuterClass.FrecencyUserSettings(); - } - case NEW_BUILDER: { - return new Builder(); - } - case BUILD_MESSAGE_INFO: { - java.lang.Object[] objects = new java.lang.Object[]{ - "bitField0_", - "versions_", - "favoriteGifs_", - "favoriteStickers_", - "stickerFrecency_", - "favoriteEmojis_", - "emojiFrecency_", - "applicationCommandFrecency_", - "favoriteSoundboardSounds_", - "applicationFrecency_", - "heardSoundFrecency_", - "playedSoundFrecency_", - "guildAndChannelFrecency_", - }; - java.lang.String info = - "\u0000\f\u0000\u0001\u0001\f\f\u0000\u0000\u0000\u0001\u1009\u0000\u0002\u1009\u0001" + - "\u0003\u1009\u0002\u0004\u1009\u0003\u0005\u1009\u0004\u0006\u1009\u0005\u0007\u1009" + - "\u0006\b\u1009\u0007\t\u1009\b\n\u1009\t\u000b\u1009\n\f\u1009\u000b"; - return newMessageInfo(DEFAULT_INSTANCE, info, objects); - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.class) { - parser = PARSER; - if (parser == null) { - parser = - new DefaultInstanceBasedParser( - DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } - } - throw new UnsupportedOperationException(); - } - - /** - * Protobuf enum {@code FrecencyUserSettings.GIFType} - */ - public enum GIFType - implements com.google.protobuf.Internal.EnumLite { - /** - * NONE = 0; - */ - NONE(0), - /** - * IMAGE = 1; - */ - IMAGE(1), - /** - * VIDEO = 2; - */ - VIDEO(2), - UNRECOGNIZED(-1), - ; - - /** - * NONE = 0; - */ - public static final int NONE_VALUE = 0; - /** - * IMAGE = 1; - */ - public static final int IMAGE_VALUE = 1; - /** - * VIDEO = 2; - */ - public static final int VIDEO_VALUE = 2; - private static final com.google.protobuf.Internal.EnumLiteMap< - GIFType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override - public GIFType findValueByNumber(int number) { - return GIFType.forNumber(number); - } - }; - private final int value; - - GIFType(int value) { - this.value = value; - } - - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GIFType valueOf(int value) { - return forNumber(value); - } - - public static GIFType forNumber(int value) { - switch (value) { - case 0: - return NONE; - case 1: - return IMAGE; - case 2: - return VIDEO; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return GIFTypeVerifier.INSTANCE; - } - - @java.lang.Override - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - private static final class GIFTypeVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new GIFTypeVerifier(); - - @java.lang.Override - public boolean isInRange(int number) { - return GIFType.forNumber(number) != null; - } - } + public interface StickerFrecencyOrBuilder extends + // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.StickerFrecency) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; + */ + int getStickersCount(); + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; + */ + boolean containsStickers( + long key); + /** + * Use {@link #getStickersMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getStickers(); + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; + */ + java.util.Map + getStickersMap(); + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; + */ + + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getStickersOrDefault( + long key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue); + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; + */ + + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getStickersOrThrow( + long key); + } + /** + * Protobuf type {@code FrecencyUserSettings.StickerFrecency} + */ + public static final class StickerFrecency extends + com.google.protobuf.GeneratedMessageLite< + StickerFrecency, StickerFrecency.Builder> implements + // @@protoc_insertion_point(message_implements:FrecencyUserSettings.StickerFrecency) + StickerFrecencyOrBuilder { + private StickerFrecency() { + } + public static final int STICKERS_FIELD_NUMBER = 1; + private static final class StickersDefaultEntryHolder { + static final com.google.protobuf.MapEntryLite< + java.lang.Long, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> defaultEntry = + com.google.protobuf.MapEntryLite + .newDefaultInstance( + com.google.protobuf.WireFormat.FieldType.FIXED64, + 0L, + com.google.protobuf.WireFormat.FieldType.MESSAGE, + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem.getDefaultInstance()); + } + private com.google.protobuf.MapFieldLite< + java.lang.Long, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> stickers_ = + com.google.protobuf.MapFieldLite.emptyMapField(); + private com.google.protobuf.MapFieldLite + internalGetStickers() { + return stickers_; + } + private com.google.protobuf.MapFieldLite + internalGetMutableStickers() { + if (!stickers_.isMutable()) { + stickers_ = stickers_.mutableCopy(); + } + return stickers_; + } + @java.lang.Override + + public int getStickersCount() { + return internalGetStickers().size(); + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; + */ + @java.lang.Override + + public boolean containsStickers( + long key) { + + return internalGetStickers().containsKey(key); + } + /** + * Use {@link #getStickersMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getStickers() { + return getStickersMap(); + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; + */ + @java.lang.Override + + public java.util.Map getStickersMap() { + return java.util.Collections.unmodifiableMap( + internalGetStickers()); + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; + */ + @java.lang.Override + + public /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getStickersOrDefault( + long key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { + + java.util.Map map = + internalGetStickers(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; + */ + @java.lang.Override + + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getStickersOrThrow( + long key) { + + java.util.Map map = + internalGetStickers(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; + */ + private java.util.Map + getMutableStickersMap() { + return internalGetMutableStickers(); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency prototype) { + return DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + * Protobuf type {@code FrecencyUserSettings.StickerFrecency} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency, Builder> implements + // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.StickerFrecency) + FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecencyOrBuilder { + // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } - // @@protoc_insertion_point(enum_scope:FrecencyUserSettings.GIFType) - } - - public interface VersionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.Versions) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * uint32 client_version = 1; - * - * @return The clientVersion. - */ - int getClientVersion(); - - /** - * uint32 server_version = 2; - * - * @return The serverVersion. - */ - int getServerVersion(); - - /** - * uint32 data_version = 3; - * - * @return The dataVersion. - */ - int getDataVersion(); - } - - public interface FavoriteGIFOrBuilder extends - // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.FavoriteGIF) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * .FrecencyUserSettings.GIFType format = 1; - * - * @return The enum numeric value on the wire for format. - */ - int getFormatValue(); - - /** - * .FrecencyUserSettings.GIFType format = 1; - * - * @return The format. - */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.GIFType getFormat(); - - /** - * string src = 2; - * - * @return The src. - */ - java.lang.String getSrc(); - - /** - * string src = 2; - * - * @return The bytes for src. - */ - com.google.protobuf.ByteString - getSrcBytes(); - - /** - * uint32 width = 3; - * - * @return The width. - */ - int getWidth(); - - /** - * uint32 height = 4; - * - * @return The height. - */ - int getHeight(); - - /** - * uint32 order = 5; - * - * @return The order. - */ - int getOrder(); - } - - public interface FavoriteGIFsOrBuilder extends - // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.FavoriteGIFs) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; - */ - int getGifsCount(); - - /** - * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; - */ - boolean containsGifs( - java.lang.String key); - - /** - * Use {@link #getGifsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getGifs(); - - /** - * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; - */ - java.util.Map - getGifsMap(); - - /** - * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; - */ - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF getGifsOrDefault( - java.lang.String key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF defaultValue); - - /** - * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; - */ - - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF getGifsOrThrow( - java.lang.String key); - - /** - * bool hide_tooltip = 2; - * - * @return The hideTooltip. - */ - boolean getHideTooltip(); - } - - public interface FavoriteStickersOrBuilder extends - // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.FavoriteStickers) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * repeated fixed64 sticker_ids = 1; - * - * @return A list containing the stickerIds. - */ - java.util.List getStickerIdsList(); - - /** - * repeated fixed64 sticker_ids = 1; - * - * @return The count of stickerIds. - */ - int getStickerIdsCount(); - - /** - * repeated fixed64 sticker_ids = 1; - * - * @param index The index of the element to return. - * @return The stickerIds at the given index. - */ - long getStickerIds(int index); - } - - public interface FrecencyItemOrBuilder extends - // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.FrecencyItem) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * uint32 total_uses = 1; - * - * @return The totalUses. - */ - int getTotalUses(); - - /** - * repeated uint64 recent_uses = 2; - * - * @return A list containing the recentUses. - */ - java.util.List getRecentUsesList(); - - /** - * repeated uint64 recent_uses = 2; - * - * @return The count of recentUses. - */ - int getRecentUsesCount(); - - /** - * repeated uint64 recent_uses = 2; - * - * @param index The index of the element to return. - * @return The recentUses at the given index. - */ - long getRecentUses(int index); - - /** - * int32 frecency = 3; - * - * @return The frecency. - */ - int getFrecency(); - - /** - * int32 score = 4; - * - * @return The score. - */ - int getScore(); - } - - public interface StickerFrecencyOrBuilder extends - // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.StickerFrecency) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; - */ - int getStickersCount(); - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; - */ - boolean containsStickers( - long key); - - /** - * Use {@link #getStickersMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getStickers(); - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; - */ - java.util.Map - getStickersMap(); - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; - */ + @java.lang.Override - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getStickersOrDefault( - long key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue); - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; - */ - - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getStickersOrThrow( - long key); - } - - public interface FavoriteEmojisOrBuilder extends - // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.FavoriteEmojis) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * repeated string emojis = 1; - * - * @return A list containing the emojis. - */ - java.util.List - getEmojisList(); - - /** - * repeated string emojis = 1; - * - * @return The count of emojis. - */ - int getEmojisCount(); - - /** - * repeated string emojis = 1; - * - * @param index The index of the element to return. - * @return The emojis at the given index. - */ - java.lang.String getEmojis(int index); - - /** - * repeated string emojis = 1; - * - * @param index The index of the element to return. - * @return The emojis at the given index. - */ - com.google.protobuf.ByteString - getEmojisBytes(int index); - } - - public interface EmojiFrecencyOrBuilder extends - // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.EmojiFrecency) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; - */ - int getEmojisCount(); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; - */ - boolean containsEmojis( - java.lang.String key); - - /** - * Use {@link #getEmojisMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getEmojis(); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; - */ - java.util.Map - getEmojisMap(); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; - */ + public int getStickersCount() { + return instance.getStickersMap().size(); + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; + */ + @java.lang.Override - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getEmojisOrDefault( - java.lang.String key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; - */ - - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getEmojisOrThrow( - java.lang.String key); - } - - public interface ApplicationCommandFrecencyOrBuilder extends - // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.ApplicationCommandFrecency) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; - */ - int getApplicationCommandsCount(); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; - */ - boolean containsApplicationCommands( - java.lang.String key); - - /** - * Use {@link #getApplicationCommandsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getApplicationCommands(); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; - */ - java.util.Map - getApplicationCommandsMap(); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; - */ + public boolean containsStickers( + long key) { - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationCommandsOrDefault( - java.lang.String key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; - */ - - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationCommandsOrThrow( - java.lang.String key); - } - - public interface FavoriteSoundboardSoundsOrBuilder extends - // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.FavoriteSoundboardSounds) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * repeated fixed64 sound_ids = 1; - * - * @return A list containing the soundIds. - */ - java.util.List getSoundIdsList(); - - /** - * repeated fixed64 sound_ids = 1; - * - * @return The count of soundIds. - */ - int getSoundIdsCount(); - - /** - * repeated fixed64 sound_ids = 1; - * - * @param index The index of the element to return. - * @return The soundIds at the given index. - */ - long getSoundIds(int index); - } - - public interface ApplicationFrecencyOrBuilder extends - // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.ApplicationFrecency) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; - */ - int getApplicationsCount(); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; - */ - boolean containsApplications( - java.lang.String key); - - /** - * Use {@link #getApplicationsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getApplications(); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; - */ - java.util.Map - getApplicationsMap(); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; - */ + return instance.getStickersMap().containsKey(key); + } - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationsOrDefault( - java.lang.String key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; - */ - - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationsOrThrow( - java.lang.String key); - } - - public interface HeardSoundFrecencyOrBuilder extends - // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.HeardSoundFrecency) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; - */ - int getHeardSoundsCount(); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; - */ - boolean containsHeardSounds( - java.lang.String key); - - /** - * Use {@link #getHeardSoundsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getHeardSounds(); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; - */ - java.util.Map - getHeardSoundsMap(); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; - */ + public Builder clearStickers() { + copyOnWrite(); + instance.getMutableStickersMap().clear(); + return this; + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; + */ - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getHeardSoundsOrDefault( - java.lang.String key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; - */ - - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getHeardSoundsOrThrow( - java.lang.String key); - } - - public interface PlayedSoundFrecencyOrBuilder extends - // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.PlayedSoundFrecency) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; - */ - int getPlayedSoundsCount(); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; - */ - boolean containsPlayedSounds( - java.lang.String key); - - /** - * Use {@link #getPlayedSoundsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getPlayedSounds(); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; - */ - java.util.Map - getPlayedSoundsMap(); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; - */ + public Builder removeStickers( + long key) { - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getPlayedSoundsOrDefault( - java.lang.String key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue); - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; - */ - - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getPlayedSoundsOrThrow( - java.lang.String key); - } - - public interface GuildAndChannelFrecencyOrBuilder extends - // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.GuildAndChannelFrecency) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; - */ - int getGuildAndChannelsCount(); - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; - */ - boolean containsGuildAndChannels( - long key); - - /** - * Use {@link #getGuildAndChannelsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getGuildAndChannels(); - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; - */ - java.util.Map - getGuildAndChannelsMap(); - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; - */ + copyOnWrite(); + instance.getMutableStickersMap().remove(key); + return this; + } + /** + * Use {@link #getStickersMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getStickers() { + return getStickersMap(); + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; + */ + @java.lang.Override + public java.util.Map getStickersMap() { + return java.util.Collections.unmodifiableMap( + instance.getStickersMap()); + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; + */ + @java.lang.Override + public /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getStickersOrDefault( + long key, /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getGuildAndChannelsOrDefault( - long key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue); - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; - */ - - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getGuildAndChannelsOrThrow( - long key); - } - - /** - * Protobuf type {@code FrecencyUserSettings.Versions} - */ - public static final class Versions extends - com.google.protobuf.GeneratedMessageLite< - Versions, Versions.Builder> implements - // @@protoc_insertion_point(message_implements:FrecencyUserSettings.Versions) - VersionsOrBuilder { - public static final int CLIENT_VERSION_FIELD_NUMBER = 1; - public static final int SERVER_VERSION_FIELD_NUMBER = 2; - public static final int DATA_VERSION_FIELD_NUMBER = 3; - // @@protoc_insertion_point(class_scope:FrecencyUserSettings.Versions) - private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions DEFAULT_INSTANCE; - private static volatile com.google.protobuf.Parser PARSER; - - static { - Versions defaultInstance = new Versions(); - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = defaultInstance; - com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( - Versions.class, defaultInstance); - } - - private int clientVersion_; - private int serverVersion_; - private int dataVersion_; - - private Versions() { - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } + java.util.Map map = + instance.getStickersMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; + */ + @java.lang.Override - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getStickersOrThrow( + long key) { - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } + java.util.Map map = + instance.getStickersMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; + */ + public Builder putStickers( + long key, + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem value) { + + java.lang.Class valueClass = value.getClass(); + copyOnWrite(); + instance.getMutableStickersMap().put(key, value); + return this; + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; + */ + public Builder putAllStickers( + java.util.Map values) { + copyOnWrite(); + instance.getMutableStickersMap().putAll(values); + return this; + } - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } + // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.StickerFrecency) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency(); + } + case NEW_BUILDER: { + return new Builder(); + } + case BUILD_MESSAGE_INFO: { + java.lang.Object[] objects = new java.lang.Object[] { + "stickers_", + StickersDefaultEntryHolder.defaultEntry, + }; + java.lang.String info = + "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u00012"; + return newMessageInfo(DEFAULT_INSTANCE, info, objects); + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency.class) { + parser = PARSER; + if (parser == null) { + parser = + new DefaultInstanceBasedParser( + DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:FrecencyUserSettings.StickerFrecency) + private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency DEFAULT_INSTANCE; + static { + StickerFrecency defaultInstance = new StickerFrecency(); + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = defaultInstance; + com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( + StickerFrecency.class, defaultInstance); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } + public interface FavoriteEmojisOrBuilder extends + // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.FavoriteEmojis) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * repeated string emojis = 1; + * @return A list containing the emojis. + */ + java.util.List + getEmojisList(); + /** + * repeated string emojis = 1; + * @return The count of emojis. + */ + int getEmojisCount(); + /** + * repeated string emojis = 1; + * @param index The index of the element to return. + * @return The emojis at the given index. + */ + java.lang.String getEmojis(int index); + /** + * repeated string emojis = 1; + * @param index The index of the element to return. + * @return The emojis at the given index. + */ + com.google.protobuf.ByteString + getEmojisBytes(int index); + } + /** + * Protobuf type {@code FrecencyUserSettings.FavoriteEmojis} + */ + public static final class FavoriteEmojis extends + com.google.protobuf.GeneratedMessageLite< + FavoriteEmojis, FavoriteEmojis.Builder> implements + // @@protoc_insertion_point(message_implements:FrecencyUserSettings.FavoriteEmojis) + FavoriteEmojisOrBuilder { + private FavoriteEmojis() { + emojis_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); + } + public static final int EMOJIS_FIELD_NUMBER = 1; + private com.google.protobuf.Internal.ProtobufList emojis_; + /** + * repeated string emojis = 1; + * @return A list containing the emojis. + */ + @java.lang.Override + public java.util.List getEmojisList() { + return emojis_; + } + /** + * repeated string emojis = 1; + * @return The count of emojis. + */ + @java.lang.Override + public int getEmojisCount() { + return emojis_.size(); + } + /** + * repeated string emojis = 1; + * @param index The index of the element to return. + * @return The emojis at the given index. + */ + @java.lang.Override + public java.lang.String getEmojis(int index) { + return emojis_.get(index); + } + /** + * repeated string emojis = 1; + * @param index The index of the value to return. + * @return The bytes of the emojis at the given index. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEmojisBytes(int index) { + return com.google.protobuf.ByteString.copyFromUtf8( + emojis_.get(index)); + } + private void ensureEmojisIsMutable() { + com.google.protobuf.Internal.ProtobufList tmp = + emojis_; if (!tmp.isModifiable()) { + emojis_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); + } + } + /** + * repeated string emojis = 1; + * @param index The index to set the value at. + * @param value The emojis to set. + */ + private void setEmojis( + int index, java.lang.String value) { + java.lang.Class valueClass = value.getClass(); + ensureEmojisIsMutable(); + emojis_.set(index, value); + } + /** + * repeated string emojis = 1; + * @param value The emojis to add. + */ + private void addEmojis( + java.lang.String value) { + java.lang.Class valueClass = value.getClass(); + ensureEmojisIsMutable(); + emojis_.add(value); + } + /** + * repeated string emojis = 1; + * @param values The emojis to add. + */ + private void addAllEmojis( + java.lang.Iterable values) { + ensureEmojisIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, emojis_); + } + /** + * repeated string emojis = 1; + */ + private void clearEmojis() { + emojis_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); + } + /** + * repeated string emojis = 1; + * @param value The bytes of the emojis to add. + */ + private void addEmojisBytes( + com.google.protobuf.ByteString value) { + checkByteStringIsUtf8(value); + ensureEmojisIsMutable(); + emojis_.add(value.toStringUtf8()); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis prototype) { + return DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + * Protobuf type {@code FrecencyUserSettings.FavoriteEmojis} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis, Builder> implements + // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.FavoriteEmojis) + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojisOrBuilder { + // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } + /** + * repeated string emojis = 1; + * @return A list containing the emojis. + */ + @java.lang.Override + public java.util.List + getEmojisList() { + return java.util.Collections.unmodifiableList( + instance.getEmojisList()); + } + /** + * repeated string emojis = 1; + * @return The count of emojis. + */ + @java.lang.Override + public int getEmojisCount() { + return instance.getEmojisCount(); + } + /** + * repeated string emojis = 1; + * @param index The index of the element to return. + * @return The emojis at the given index. + */ + @java.lang.Override + public java.lang.String getEmojis(int index) { + return instance.getEmojis(index); + } + /** + * repeated string emojis = 1; + * @param index The index of the value to return. + * @return The bytes of the emojis at the given index. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEmojisBytes(int index) { + return instance.getEmojisBytes(index); + } + /** + * repeated string emojis = 1; + * @param index The index to set the value at. + * @param value The emojis to set. + * @return This builder for chaining. + */ + public Builder setEmojis( + int index, java.lang.String value) { + copyOnWrite(); + instance.setEmojis(index, value); + return this; + } + /** + * repeated string emojis = 1; + * @param value The emojis to add. + * @return This builder for chaining. + */ + public Builder addEmojis( + java.lang.String value) { + copyOnWrite(); + instance.addEmojis(value); + return this; + } + /** + * repeated string emojis = 1; + * @param values The emojis to add. + * @return This builder for chaining. + */ + public Builder addAllEmojis( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllEmojis(values); + return this; + } + /** + * repeated string emojis = 1; + * @return This builder for chaining. + */ + public Builder clearEmojis() { + copyOnWrite(); + instance.clearEmojis(); + return this; + } + /** + * repeated string emojis = 1; + * @param value The bytes of the emojis to add. + * @return This builder for chaining. + */ + public Builder addEmojisBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.addEmojisBytes(value); + return this; + } - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } + // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.FavoriteEmojis) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis(); + } + case NEW_BUILDER: { + return new Builder(); + } + case BUILD_MESSAGE_INFO: { + java.lang.Object[] objects = new java.lang.Object[] { + "emojis_", + }; + java.lang.String info = + "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u021a"; + return newMessageInfo(DEFAULT_INSTANCE, info, objects); + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis.class) { + parser = PARSER; + if (parser == null) { + parser = + new DefaultInstanceBasedParser( + DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:FrecencyUserSettings.FavoriteEmojis) + private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis DEFAULT_INSTANCE; + static { + FavoriteEmojis defaultInstance = new FavoriteEmojis(); + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = defaultInstance; + com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( + FavoriteEmojis.class, defaultInstance); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } + public interface EmojiFrecencyOrBuilder extends + // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.EmojiFrecency) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; + */ + int getEmojisCount(); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; + */ + boolean containsEmojis( + java.lang.String key); + /** + * Use {@link #getEmojisMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getEmojis(); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; + */ + java.util.Map + getEmojisMap(); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; + */ + + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getEmojisOrDefault( + java.lang.String key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; + */ + + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getEmojisOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code FrecencyUserSettings.EmojiFrecency} + */ + public static final class EmojiFrecency extends + com.google.protobuf.GeneratedMessageLite< + EmojiFrecency, EmojiFrecency.Builder> implements + // @@protoc_insertion_point(message_implements:FrecencyUserSettings.EmojiFrecency) + EmojiFrecencyOrBuilder { + private EmojiFrecency() { + } + public static final int EMOJIS_FIELD_NUMBER = 1; + private static final class EmojisDefaultEntryHolder { + static final com.google.protobuf.MapEntryLite< + java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> defaultEntry = + com.google.protobuf.MapEntryLite + .newDefaultInstance( + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem.getDefaultInstance()); + } + private com.google.protobuf.MapFieldLite< + java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> emojis_ = + com.google.protobuf.MapFieldLite.emptyMapField(); + private com.google.protobuf.MapFieldLite + internalGetEmojis() { + return emojis_; + } + private com.google.protobuf.MapFieldLite + internalGetMutableEmojis() { + if (!emojis_.isMutable()) { + emojis_ = emojis_.mutableCopy(); + } + return emojis_; + } + @java.lang.Override + + public int getEmojisCount() { + return internalGetEmojis().size(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; + */ + @java.lang.Override + + public boolean containsEmojis( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + return internalGetEmojis().containsKey(key); + } + /** + * Use {@link #getEmojisMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getEmojis() { + return getEmojisMap(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; + */ + @java.lang.Override + + public java.util.Map getEmojisMap() { + return java.util.Collections.unmodifiableMap( + internalGetEmojis()); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; + */ + @java.lang.Override + + public /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getEmojisOrDefault( + java.lang.String key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + internalGetEmojis(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; + */ + @java.lang.Override + + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getEmojisOrThrow( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + internalGetEmojis(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; + */ + private java.util.Map + getMutableEmojisMap() { + return internalGetMutableEmojis(); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency prototype) { + return DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + * Protobuf type {@code FrecencyUserSettings.EmojiFrecency} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency, Builder> implements + // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.EmojiFrecency) + FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecencyOrBuilder { + // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } + @java.lang.Override - public static Builder newBuilder() { - return DEFAULT_INSTANCE.createBuilder(); - } + public int getEmojisCount() { + return instance.getEmojisMap().size(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; + */ + @java.lang.Override - public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions prototype) { - return DEFAULT_INSTANCE.createBuilder(prototype); - } + public boolean containsEmojis( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + return instance.getEmojisMap().containsKey(key); + } - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder clearEmojis() { + copyOnWrite(); + instance.getMutableEmojisMap().clear(); + return this; + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; + */ - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } + public Builder removeEmojis( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + copyOnWrite(); + instance.getMutableEmojisMap().remove(key); + return this; + } + /** + * Use {@link #getEmojisMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getEmojis() { + return getEmojisMap(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; + */ + @java.lang.Override + public java.util.Map getEmojisMap() { + return java.util.Collections.unmodifiableMap( + instance.getEmojisMap()); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; + */ + @java.lang.Override - /** - * uint32 client_version = 1; - * - * @return The clientVersion. - */ - @java.lang.Override - public int getClientVersion() { - return clientVersion_; - } + public /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getEmojisOrDefault( + java.lang.String key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + instance.getEmojisMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; + */ + @java.lang.Override - /** - * uint32 client_version = 1; - * - * @param value The clientVersion to set. - */ - private void setClientVersion(int value) { + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getEmojisOrThrow( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + instance.getEmojisMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; + */ + public Builder putEmojis( + java.lang.String key, + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem value) { + java.lang.Class keyClass = key.getClass(); + java.lang.Class valueClass = value.getClass(); + copyOnWrite(); + instance.getMutableEmojisMap().put(key, value); + return this; + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; + */ + public Builder putAllEmojis( + java.util.Map values) { + copyOnWrite(); + instance.getMutableEmojisMap().putAll(values); + return this; + } - clientVersion_ = value; - } + // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.EmojiFrecency) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency(); + } + case NEW_BUILDER: { + return new Builder(); + } + case BUILD_MESSAGE_INFO: { + java.lang.Object[] objects = new java.lang.Object[] { + "emojis_", + EmojisDefaultEntryHolder.defaultEntry, + }; + java.lang.String info = + "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u00012"; + return newMessageInfo(DEFAULT_INSTANCE, info, objects); + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency.class) { + parser = PARSER; + if (parser == null) { + parser = + new DefaultInstanceBasedParser( + DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:FrecencyUserSettings.EmojiFrecency) + private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency DEFAULT_INSTANCE; + static { + EmojiFrecency defaultInstance = new EmojiFrecency(); + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = defaultInstance; + com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( + EmojiFrecency.class, defaultInstance); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } - /** - * uint32 client_version = 1; - */ - private void clearClientVersion() { + public interface ApplicationCommandFrecencyOrBuilder extends + // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.ApplicationCommandFrecency) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; + */ + int getApplicationCommandsCount(); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; + */ + boolean containsApplicationCommands( + java.lang.String key); + /** + * Use {@link #getApplicationCommandsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getApplicationCommands(); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; + */ + java.util.Map + getApplicationCommandsMap(); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; + */ + + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationCommandsOrDefault( + java.lang.String key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; + */ + + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationCommandsOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code FrecencyUserSettings.ApplicationCommandFrecency} + */ + public static final class ApplicationCommandFrecency extends + com.google.protobuf.GeneratedMessageLite< + ApplicationCommandFrecency, ApplicationCommandFrecency.Builder> implements + // @@protoc_insertion_point(message_implements:FrecencyUserSettings.ApplicationCommandFrecency) + ApplicationCommandFrecencyOrBuilder { + private ApplicationCommandFrecency() { + } + public static final int APPLICATION_COMMANDS_FIELD_NUMBER = 1; + private static final class ApplicationCommandsDefaultEntryHolder { + static final com.google.protobuf.MapEntryLite< + java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> defaultEntry = + com.google.protobuf.MapEntryLite + .newDefaultInstance( + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem.getDefaultInstance()); + } + private com.google.protobuf.MapFieldLite< + java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> applicationCommands_ = + com.google.protobuf.MapFieldLite.emptyMapField(); + private com.google.protobuf.MapFieldLite + internalGetApplicationCommands() { + return applicationCommands_; + } + private com.google.protobuf.MapFieldLite + internalGetMutableApplicationCommands() { + if (!applicationCommands_.isMutable()) { + applicationCommands_ = applicationCommands_.mutableCopy(); + } + return applicationCommands_; + } + @java.lang.Override + + public int getApplicationCommandsCount() { + return internalGetApplicationCommands().size(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; + */ + @java.lang.Override + + public boolean containsApplicationCommands( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + return internalGetApplicationCommands().containsKey(key); + } + /** + * Use {@link #getApplicationCommandsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getApplicationCommands() { + return getApplicationCommandsMap(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; + */ + @java.lang.Override + + public java.util.Map getApplicationCommandsMap() { + return java.util.Collections.unmodifiableMap( + internalGetApplicationCommands()); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; + */ + @java.lang.Override + + public /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationCommandsOrDefault( + java.lang.String key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + internalGetApplicationCommands(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; + */ + @java.lang.Override + + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationCommandsOrThrow( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + internalGetApplicationCommands(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; + */ + private java.util.Map + getMutableApplicationCommandsMap() { + return internalGetMutableApplicationCommands(); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency prototype) { + return DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + * Protobuf type {@code FrecencyUserSettings.ApplicationCommandFrecency} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency, Builder> implements + // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.ApplicationCommandFrecency) + FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecencyOrBuilder { + // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } - clientVersion_ = 0; - } - /** - * uint32 server_version = 2; - * - * @return The serverVersion. - */ - @java.lang.Override - public int getServerVersion() { - return serverVersion_; - } + @java.lang.Override - /** - * uint32 server_version = 2; - * - * @param value The serverVersion to set. - */ - private void setServerVersion(int value) { + public int getApplicationCommandsCount() { + return instance.getApplicationCommandsMap().size(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; + */ + @java.lang.Override - serverVersion_ = value; - } + public boolean containsApplicationCommands( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + return instance.getApplicationCommandsMap().containsKey(key); + } - /** - * uint32 server_version = 2; - */ - private void clearServerVersion() { + public Builder clearApplicationCommands() { + copyOnWrite(); + instance.getMutableApplicationCommandsMap().clear(); + return this; + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; + */ - serverVersion_ = 0; - } + public Builder removeApplicationCommands( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + copyOnWrite(); + instance.getMutableApplicationCommandsMap().remove(key); + return this; + } + /** + * Use {@link #getApplicationCommandsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getApplicationCommands() { + return getApplicationCommandsMap(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; + */ + @java.lang.Override + public java.util.Map getApplicationCommandsMap() { + return java.util.Collections.unmodifiableMap( + instance.getApplicationCommandsMap()); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; + */ + @java.lang.Override - /** - * uint32 data_version = 3; - * - * @return The dataVersion. - */ - @java.lang.Override - public int getDataVersion() { - return dataVersion_; - } + public /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationCommandsOrDefault( + java.lang.String key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + instance.getApplicationCommandsMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; + */ + @java.lang.Override - /** - * uint32 data_version = 3; - * - * @param value The dataVersion to set. - */ - private void setDataVersion(int value) { + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationCommandsOrThrow( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + instance.getApplicationCommandsMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; + */ + public Builder putApplicationCommands( + java.lang.String key, + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem value) { + java.lang.Class keyClass = key.getClass(); + java.lang.Class valueClass = value.getClass(); + copyOnWrite(); + instance.getMutableApplicationCommandsMap().put(key, value); + return this; + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; + */ + public Builder putAllApplicationCommands( + java.util.Map values) { + copyOnWrite(); + instance.getMutableApplicationCommandsMap().putAll(values); + return this; + } - dataVersion_ = value; - } + // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.ApplicationCommandFrecency) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency(); + } + case NEW_BUILDER: { + return new Builder(); + } + case BUILD_MESSAGE_INFO: { + java.lang.Object[] objects = new java.lang.Object[] { + "applicationCommands_", + ApplicationCommandsDefaultEntryHolder.defaultEntry, + }; + java.lang.String info = + "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u00012"; + return newMessageInfo(DEFAULT_INSTANCE, info, objects); + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency.class) { + parser = PARSER; + if (parser == null) { + parser = + new DefaultInstanceBasedParser( + DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:FrecencyUserSettings.ApplicationCommandFrecency) + private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency DEFAULT_INSTANCE; + static { + ApplicationCommandFrecency defaultInstance = new ApplicationCommandFrecency(); + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = defaultInstance; + com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( + ApplicationCommandFrecency.class, defaultInstance); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } - /** - * uint32 data_version = 3; - */ - private void clearDataVersion() { + public interface FavoriteSoundboardSoundsOrBuilder extends + // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.FavoriteSoundboardSounds) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * repeated fixed64 sound_ids = 1; + * @return A list containing the soundIds. + */ + java.util.List getSoundIdsList(); + /** + * repeated fixed64 sound_ids = 1; + * @return The count of soundIds. + */ + int getSoundIdsCount(); + /** + * repeated fixed64 sound_ids = 1; + * @param index The index of the element to return. + * @return The soundIds at the given index. + */ + long getSoundIds(int index); + } + /** + * Protobuf type {@code FrecencyUserSettings.FavoriteSoundboardSounds} + */ + public static final class FavoriteSoundboardSounds extends + com.google.protobuf.GeneratedMessageLite< + FavoriteSoundboardSounds, FavoriteSoundboardSounds.Builder> implements + // @@protoc_insertion_point(message_implements:FrecencyUserSettings.FavoriteSoundboardSounds) + FavoriteSoundboardSoundsOrBuilder { + private FavoriteSoundboardSounds() { + soundIds_ = emptyLongList(); + } + public static final int SOUND_IDS_FIELD_NUMBER = 1; + private com.google.protobuf.Internal.LongList soundIds_; + /** + * repeated fixed64 sound_ids = 1; + * @return A list containing the soundIds. + */ + @java.lang.Override + public java.util.List + getSoundIdsList() { + return soundIds_; + } + /** + * repeated fixed64 sound_ids = 1; + * @return The count of soundIds. + */ + @java.lang.Override + public int getSoundIdsCount() { + return soundIds_.size(); + } + /** + * repeated fixed64 sound_ids = 1; + * @param index The index of the element to return. + * @return The soundIds at the given index. + */ + @java.lang.Override + public long getSoundIds(int index) { + return soundIds_.getLong(index); + } + private final int soundIdsMemoizedSerializedSize = -1; + private void ensureSoundIdsIsMutable() { + com.google.protobuf.Internal.LongList tmp = soundIds_; + if (!tmp.isModifiable()) { + soundIds_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); + } + } + /** + * repeated fixed64 sound_ids = 1; + * @param index The index to set the value at. + * @param value The soundIds to set. + */ + private void setSoundIds( + int index, long value) { + ensureSoundIdsIsMutable(); + soundIds_.setLong(index, value); + } + /** + * repeated fixed64 sound_ids = 1; + * @param value The soundIds to add. + */ + private void addSoundIds(long value) { + ensureSoundIdsIsMutable(); + soundIds_.addLong(value); + } + /** + * repeated fixed64 sound_ids = 1; + * @param values The soundIds to add. + */ + private void addAllSoundIds( + java.lang.Iterable values) { + ensureSoundIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, soundIds_); + } + /** + * repeated fixed64 sound_ids = 1; + */ + private void clearSoundIds() { + soundIds_ = emptyLongList(); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds prototype) { + return DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + * Protobuf type {@code FrecencyUserSettings.FavoriteSoundboardSounds} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds, Builder> implements + // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.FavoriteSoundboardSounds) + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSoundsOrBuilder { + // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } - dataVersion_ = 0; - } - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions(); - } - case NEW_BUILDER: { - return new Builder(); - } - case BUILD_MESSAGE_INFO: { - java.lang.Object[] objects = new java.lang.Object[]{ - "clientVersion_", - "serverVersion_", - "dataVersion_", - }; - java.lang.String info = - "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u000b\u0002\u000b" + - "\u0003\u000b"; - return newMessageInfo(DEFAULT_INSTANCE, info, objects); - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions.class) { - parser = PARSER; - if (parser == null) { - parser = - new DefaultInstanceBasedParser( - DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } - } - throw new UnsupportedOperationException(); - } - - /** - * Protobuf type {@code FrecencyUserSettings.Versions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions, Builder> implements - // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.Versions) - FrecencyUserSettingsOuterClass.FrecencyUserSettings.VersionsOrBuilder { - // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - * uint32 client_version = 1; - * - * @return The clientVersion. - */ - @java.lang.Override - public int getClientVersion() { - return instance.getClientVersion(); - } + /** + * repeated fixed64 sound_ids = 1; + * @return A list containing the soundIds. + */ + @java.lang.Override + public java.util.List + getSoundIdsList() { + return java.util.Collections.unmodifiableList( + instance.getSoundIdsList()); + } + /** + * repeated fixed64 sound_ids = 1; + * @return The count of soundIds. + */ + @java.lang.Override + public int getSoundIdsCount() { + return instance.getSoundIdsCount(); + } + /** + * repeated fixed64 sound_ids = 1; + * @param index The index of the element to return. + * @return The soundIds at the given index. + */ + @java.lang.Override + public long getSoundIds(int index) { + return instance.getSoundIds(index); + } + /** + * repeated fixed64 sound_ids = 1; + * @param value The soundIds to set. + * @return This builder for chaining. + */ + public Builder setSoundIds( + int index, long value) { + copyOnWrite(); + instance.setSoundIds(index, value); + return this; + } + /** + * repeated fixed64 sound_ids = 1; + * @param value The soundIds to add. + * @return This builder for chaining. + */ + public Builder addSoundIds(long value) { + copyOnWrite(); + instance.addSoundIds(value); + return this; + } + /** + * repeated fixed64 sound_ids = 1; + * @param values The soundIds to add. + * @return This builder for chaining. + */ + public Builder addAllSoundIds( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllSoundIds(values); + return this; + } + /** + * repeated fixed64 sound_ids = 1; + * @return This builder for chaining. + */ + public Builder clearSoundIds() { + copyOnWrite(); + instance.clearSoundIds(); + return this; + } - /** - * uint32 client_version = 1; - * - * @param value The clientVersion to set. - * @return This builder for chaining. - */ - public Builder setClientVersion(int value) { - copyOnWrite(); - instance.setClientVersion(value); - return this; - } + // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.FavoriteSoundboardSounds) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds(); + } + case NEW_BUILDER: { + return new Builder(); + } + case BUILD_MESSAGE_INFO: { + java.lang.Object[] objects = new java.lang.Object[] { + "soundIds_", + }; + java.lang.String info = + "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001("; + return newMessageInfo(DEFAULT_INSTANCE, info, objects); + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds.class) { + parser = PARSER; + if (parser == null) { + parser = + new DefaultInstanceBasedParser( + DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:FrecencyUserSettings.FavoriteSoundboardSounds) + private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds DEFAULT_INSTANCE; + static { + FavoriteSoundboardSounds defaultInstance = new FavoriteSoundboardSounds(); + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = defaultInstance; + com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( + FavoriteSoundboardSounds.class, defaultInstance); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } - /** - * uint32 client_version = 1; - * - * @return This builder for chaining. - */ - public Builder clearClientVersion() { - copyOnWrite(); - instance.clearClientVersion(); - return this; - } + public interface ApplicationFrecencyOrBuilder extends + // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.ApplicationFrecency) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; + */ + int getApplicationsCount(); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; + */ + boolean containsApplications( + java.lang.String key); + /** + * Use {@link #getApplicationsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getApplications(); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; + */ + java.util.Map + getApplicationsMap(); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; + */ + + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationsOrDefault( + java.lang.String key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; + */ + + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationsOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code FrecencyUserSettings.ApplicationFrecency} + */ + public static final class ApplicationFrecency extends + com.google.protobuf.GeneratedMessageLite< + ApplicationFrecency, ApplicationFrecency.Builder> implements + // @@protoc_insertion_point(message_implements:FrecencyUserSettings.ApplicationFrecency) + ApplicationFrecencyOrBuilder { + private ApplicationFrecency() { + } + public static final int APPLICATIONS_FIELD_NUMBER = 1; + private static final class ApplicationsDefaultEntryHolder { + static final com.google.protobuf.MapEntryLite< + java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> defaultEntry = + com.google.protobuf.MapEntryLite + .newDefaultInstance( + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem.getDefaultInstance()); + } + private com.google.protobuf.MapFieldLite< + java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> applications_ = + com.google.protobuf.MapFieldLite.emptyMapField(); + private com.google.protobuf.MapFieldLite + internalGetApplications() { + return applications_; + } + private com.google.protobuf.MapFieldLite + internalGetMutableApplications() { + if (!applications_.isMutable()) { + applications_ = applications_.mutableCopy(); + } + return applications_; + } + @java.lang.Override + + public int getApplicationsCount() { + return internalGetApplications().size(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; + */ + @java.lang.Override + + public boolean containsApplications( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + return internalGetApplications().containsKey(key); + } + /** + * Use {@link #getApplicationsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getApplications() { + return getApplicationsMap(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; + */ + @java.lang.Override + + public java.util.Map getApplicationsMap() { + return java.util.Collections.unmodifiableMap( + internalGetApplications()); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; + */ + @java.lang.Override + + public /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationsOrDefault( + java.lang.String key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + internalGetApplications(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; + */ + @java.lang.Override + + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationsOrThrow( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + internalGetApplications(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; + */ + private java.util.Map + getMutableApplicationsMap() { + return internalGetMutableApplications(); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency prototype) { + return DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + * Protobuf type {@code FrecencyUserSettings.ApplicationFrecency} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency, Builder> implements + // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.ApplicationFrecency) + FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecencyOrBuilder { + // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } - /** - * uint32 server_version = 2; - * - * @return The serverVersion. - */ - @java.lang.Override - public int getServerVersion() { - return instance.getServerVersion(); - } - /** - * uint32 server_version = 2; - * - * @param value The serverVersion to set. - * @return This builder for chaining. - */ - public Builder setServerVersion(int value) { - copyOnWrite(); - instance.setServerVersion(value); - return this; - } + @java.lang.Override - /** - * uint32 server_version = 2; - * - * @return This builder for chaining. - */ - public Builder clearServerVersion() { - copyOnWrite(); - instance.clearServerVersion(); - return this; - } + public int getApplicationsCount() { + return instance.getApplicationsMap().size(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; + */ + @java.lang.Override - /** - * uint32 data_version = 3; - * - * @return The dataVersion. - */ - @java.lang.Override - public int getDataVersion() { - return instance.getDataVersion(); - } + public boolean containsApplications( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + return instance.getApplicationsMap().containsKey(key); + } - /** - * uint32 data_version = 3; - * - * @param value The dataVersion to set. - * @return This builder for chaining. - */ - public Builder setDataVersion(int value) { - copyOnWrite(); - instance.setDataVersion(value); - return this; - } + public Builder clearApplications() { + copyOnWrite(); + instance.getMutableApplicationsMap().clear(); + return this; + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; + */ - /** - * uint32 data_version = 3; - * - * @return This builder for chaining. - */ - public Builder clearDataVersion() { - copyOnWrite(); - instance.clearDataVersion(); - return this; - } + public Builder removeApplications( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + copyOnWrite(); + instance.getMutableApplicationsMap().remove(key); + return this; + } + /** + * Use {@link #getApplicationsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getApplications() { + return getApplicationsMap(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; + */ + @java.lang.Override + public java.util.Map getApplicationsMap() { + return java.util.Collections.unmodifiableMap( + instance.getApplicationsMap()); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; + */ + @java.lang.Override - // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.Versions) - } + public /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationsOrDefault( + java.lang.String key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + instance.getApplicationsMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationsOrThrow( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + instance.getApplicationsMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } /** - * Protobuf type {@code FrecencyUserSettings.FavoriteGIF} - */ - public static final class FavoriteGIF extends - com.google.protobuf.GeneratedMessageLite< - FavoriteGIF, FavoriteGIF.Builder> implements - // @@protoc_insertion_point(message_implements:FrecencyUserSettings.FavoriteGIF) - FavoriteGIFOrBuilder { - public static final int FORMAT_FIELD_NUMBER = 1; - public static final int SRC_FIELD_NUMBER = 2; - public static final int WIDTH_FIELD_NUMBER = 3; - public static final int HEIGHT_FIELD_NUMBER = 4; - public static final int ORDER_FIELD_NUMBER = 5; - // @@protoc_insertion_point(class_scope:FrecencyUserSettings.FavoriteGIF) - private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF DEFAULT_INSTANCE; - private static volatile com.google.protobuf.Parser PARSER; - - static { - FavoriteGIF defaultInstance = new FavoriteGIF(); - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = defaultInstance; - com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( - FavoriteGIF.class, defaultInstance); - } + * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; + */ + public Builder putApplications( + java.lang.String key, + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem value) { + java.lang.Class keyClass = key.getClass(); + java.lang.Class valueClass = value.getClass(); + copyOnWrite(); + instance.getMutableApplicationsMap().put(key, value); + return this; + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; + */ + public Builder putAllApplications( + java.util.Map values) { + copyOnWrite(); + instance.getMutableApplicationsMap().putAll(values); + return this; + } - private int format_; - private java.lang.String src_; - private int width_; - private int height_; - private int order_; + // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.ApplicationFrecency) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency(); + } + case NEW_BUILDER: { + return new Builder(); + } + case BUILD_MESSAGE_INFO: { + java.lang.Object[] objects = new java.lang.Object[] { + "applications_", + ApplicationsDefaultEntryHolder.defaultEntry, + }; + java.lang.String info = + "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u00012"; + return newMessageInfo(DEFAULT_INSTANCE, info, objects); + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency.class) { + parser = PARSER; + if (parser == null) { + parser = + new DefaultInstanceBasedParser( + DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:FrecencyUserSettings.ApplicationFrecency) + private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency DEFAULT_INSTANCE; + static { + ApplicationFrecency defaultInstance = new ApplicationFrecency(); + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = defaultInstance; + com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( + ApplicationFrecency.class, defaultInstance); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } - private FavoriteGIF() { - src_ = ""; - } + public interface HeardSoundFrecencyOrBuilder extends + // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.HeardSoundFrecency) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; + */ + int getHeardSoundsCount(); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; + */ + boolean containsHeardSounds( + java.lang.String key); + /** + * Use {@link #getHeardSoundsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getHeardSounds(); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; + */ + java.util.Map + getHeardSoundsMap(); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; + */ + + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getHeardSoundsOrDefault( + java.lang.String key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; + */ + + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getHeardSoundsOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code FrecencyUserSettings.HeardSoundFrecency} + */ + public static final class HeardSoundFrecency extends + com.google.protobuf.GeneratedMessageLite< + HeardSoundFrecency, HeardSoundFrecency.Builder> implements + // @@protoc_insertion_point(message_implements:FrecencyUserSettings.HeardSoundFrecency) + HeardSoundFrecencyOrBuilder { + private HeardSoundFrecency() { + } + public static final int HEARD_SOUNDS_FIELD_NUMBER = 1; + private static final class HeardSoundsDefaultEntryHolder { + static final com.google.protobuf.MapEntryLite< + java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> defaultEntry = + com.google.protobuf.MapEntryLite + .newDefaultInstance( + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem.getDefaultInstance()); + } + private com.google.protobuf.MapFieldLite< + java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> heardSounds_ = + com.google.protobuf.MapFieldLite.emptyMapField(); + private com.google.protobuf.MapFieldLite + internalGetHeardSounds() { + return heardSounds_; + } + private com.google.protobuf.MapFieldLite + internalGetMutableHeardSounds() { + if (!heardSounds_.isMutable()) { + heardSounds_ = heardSounds_.mutableCopy(); + } + return heardSounds_; + } + @java.lang.Override + + public int getHeardSoundsCount() { + return internalGetHeardSounds().size(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; + */ + @java.lang.Override + + public boolean containsHeardSounds( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + return internalGetHeardSounds().containsKey(key); + } + /** + * Use {@link #getHeardSoundsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getHeardSounds() { + return getHeardSoundsMap(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; + */ + @java.lang.Override + + public java.util.Map getHeardSoundsMap() { + return java.util.Collections.unmodifiableMap( + internalGetHeardSounds()); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; + */ + @java.lang.Override + + public /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getHeardSoundsOrDefault( + java.lang.String key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + internalGetHeardSounds(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; + */ + @java.lang.Override + + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getHeardSoundsOrThrow( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + internalGetHeardSounds(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; + */ + private java.util.Map + getMutableHeardSoundsMap() { + return internalGetMutableHeardSounds(); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency prototype) { + return DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + * Protobuf type {@code FrecencyUserSettings.HeardSoundFrecency} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency, Builder> implements + // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.HeardSoundFrecency) + FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecencyOrBuilder { + // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } + @java.lang.Override - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } + public int getHeardSoundsCount() { + return instance.getHeardSoundsMap().size(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; + */ + @java.lang.Override - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } + public boolean containsHeardSounds( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + return instance.getHeardSoundsMap().containsKey(key); + } - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } + public Builder clearHeardSounds() { + copyOnWrite(); + instance.getMutableHeardSoundsMap().clear(); + return this; + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; + */ - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } + public Builder removeHeardSounds( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + copyOnWrite(); + instance.getMutableHeardSoundsMap().remove(key); + return this; + } + /** + * Use {@link #getHeardSoundsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getHeardSounds() { + return getHeardSoundsMap(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; + */ + @java.lang.Override + public java.util.Map getHeardSoundsMap() { + return java.util.Collections.unmodifiableMap( + instance.getHeardSoundsMap()); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; + */ + @java.lang.Override - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } + public /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getHeardSoundsOrDefault( + java.lang.String key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + instance.getHeardSoundsMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; + */ + @java.lang.Override - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getHeardSoundsOrThrow( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + instance.getHeardSoundsMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; + */ + public Builder putHeardSounds( + java.lang.String key, + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem value) { + java.lang.Class keyClass = key.getClass(); + java.lang.Class valueClass = value.getClass(); + copyOnWrite(); + instance.getMutableHeardSoundsMap().put(key, value); + return this; + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; + */ + public Builder putAllHeardSounds( + java.util.Map values) { + copyOnWrite(); + instance.getMutableHeardSoundsMap().putAll(values); + return this; + } - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } + // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.HeardSoundFrecency) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency(); + } + case NEW_BUILDER: { + return new Builder(); + } + case BUILD_MESSAGE_INFO: { + java.lang.Object[] objects = new java.lang.Object[] { + "heardSounds_", + HeardSoundsDefaultEntryHolder.defaultEntry, + }; + java.lang.String info = + "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u00012"; + return newMessageInfo(DEFAULT_INSTANCE, info, objects); + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency.class) { + parser = PARSER; + if (parser == null) { + parser = + new DefaultInstanceBasedParser( + DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:FrecencyUserSettings.HeardSoundFrecency) + private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency DEFAULT_INSTANCE; + static { + HeardSoundFrecency defaultInstance = new HeardSoundFrecency(); + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = defaultInstance; + com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( + HeardSoundFrecency.class, defaultInstance); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } + public interface PlayedSoundFrecencyOrBuilder extends + // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.PlayedSoundFrecency) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; + */ + int getPlayedSoundsCount(); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; + */ + boolean containsPlayedSounds( + java.lang.String key); + /** + * Use {@link #getPlayedSoundsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getPlayedSounds(); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; + */ + java.util.Map + getPlayedSoundsMap(); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; + */ + + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getPlayedSoundsOrDefault( + java.lang.String key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue); + /** + * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; + */ + + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getPlayedSoundsOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code FrecencyUserSettings.PlayedSoundFrecency} + */ + public static final class PlayedSoundFrecency extends + com.google.protobuf.GeneratedMessageLite< + PlayedSoundFrecency, PlayedSoundFrecency.Builder> implements + // @@protoc_insertion_point(message_implements:FrecencyUserSettings.PlayedSoundFrecency) + PlayedSoundFrecencyOrBuilder { + private PlayedSoundFrecency() { + } + public static final int PLAYED_SOUNDS_FIELD_NUMBER = 1; + private static final class PlayedSoundsDefaultEntryHolder { + static final com.google.protobuf.MapEntryLite< + java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> defaultEntry = + com.google.protobuf.MapEntryLite + .newDefaultInstance( + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem.getDefaultInstance()); + } + private com.google.protobuf.MapFieldLite< + java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> playedSounds_ = + com.google.protobuf.MapFieldLite.emptyMapField(); + private com.google.protobuf.MapFieldLite + internalGetPlayedSounds() { + return playedSounds_; + } + private com.google.protobuf.MapFieldLite + internalGetMutablePlayedSounds() { + if (!playedSounds_.isMutable()) { + playedSounds_ = playedSounds_.mutableCopy(); + } + return playedSounds_; + } + @java.lang.Override + + public int getPlayedSoundsCount() { + return internalGetPlayedSounds().size(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; + */ + @java.lang.Override + + public boolean containsPlayedSounds( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + return internalGetPlayedSounds().containsKey(key); + } + /** + * Use {@link #getPlayedSoundsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getPlayedSounds() { + return getPlayedSoundsMap(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; + */ + @java.lang.Override + + public java.util.Map getPlayedSoundsMap() { + return java.util.Collections.unmodifiableMap( + internalGetPlayedSounds()); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; + */ + @java.lang.Override + + public /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getPlayedSoundsOrDefault( + java.lang.String key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + internalGetPlayedSounds(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; + */ + @java.lang.Override + + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getPlayedSoundsOrThrow( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + internalGetPlayedSounds(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; + */ + private java.util.Map + getMutablePlayedSoundsMap() { + return internalGetMutablePlayedSounds(); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency prototype) { + return DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + * Protobuf type {@code FrecencyUserSettings.PlayedSoundFrecency} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency, Builder> implements + // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.PlayedSoundFrecency) + FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecencyOrBuilder { + // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } + @java.lang.Override - public static Builder newBuilder() { - return DEFAULT_INSTANCE.createBuilder(); - } + public int getPlayedSoundsCount() { + return instance.getPlayedSoundsMap().size(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; + */ + @java.lang.Override - public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF prototype) { - return DEFAULT_INSTANCE.createBuilder(prototype); - } + public boolean containsPlayedSounds( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + return instance.getPlayedSoundsMap().containsKey(key); + } - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder clearPlayedSounds() { + copyOnWrite(); + instance.getMutablePlayedSoundsMap().clear(); + return this; + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; + */ - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } + public Builder removePlayedSounds( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + copyOnWrite(); + instance.getMutablePlayedSoundsMap().remove(key); + return this; + } + /** + * Use {@link #getPlayedSoundsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getPlayedSounds() { + return getPlayedSoundsMap(); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; + */ + @java.lang.Override + public java.util.Map getPlayedSoundsMap() { + return java.util.Collections.unmodifiableMap( + instance.getPlayedSoundsMap()); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; + */ + @java.lang.Override - /** - * .FrecencyUserSettings.GIFType format = 1; - * - * @return The enum numeric value on the wire for format. - */ - @java.lang.Override - public int getFormatValue() { - return format_; - } + public /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getPlayedSoundsOrDefault( + java.lang.String key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + instance.getPlayedSoundsMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; + */ + @java.lang.Override - /** - * .FrecencyUserSettings.GIFType format = 1; - * - * @param value The enum numeric value on the wire for format to set. - */ - private void setFormatValue(int value) { - format_ = value; - } + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getPlayedSoundsOrThrow( + java.lang.String key) { + java.lang.Class keyClass = key.getClass(); + java.util.Map map = + instance.getPlayedSoundsMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; + */ + public Builder putPlayedSounds( + java.lang.String key, + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem value) { + java.lang.Class keyClass = key.getClass(); + java.lang.Class valueClass = value.getClass(); + copyOnWrite(); + instance.getMutablePlayedSoundsMap().put(key, value); + return this; + } + /** + * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; + */ + public Builder putAllPlayedSounds( + java.util.Map values) { + copyOnWrite(); + instance.getMutablePlayedSoundsMap().putAll(values); + return this; + } - /** - * .FrecencyUserSettings.GIFType format = 1; - * - * @return The format. - */ - @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.GIFType getFormat() { - FrecencyUserSettingsOuterClass.FrecencyUserSettings.GIFType result = FrecencyUserSettingsOuterClass.FrecencyUserSettings.GIFType.forNumber(format_); - return result == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.GIFType.UNRECOGNIZED : result; - } + // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.PlayedSoundFrecency) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency(); + } + case NEW_BUILDER: { + return new Builder(); + } + case BUILD_MESSAGE_INFO: { + java.lang.Object[] objects = new java.lang.Object[] { + "playedSounds_", + PlayedSoundsDefaultEntryHolder.defaultEntry, + }; + java.lang.String info = + "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u00012"; + return newMessageInfo(DEFAULT_INSTANCE, info, objects); + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency.class) { + parser = PARSER; + if (parser == null) { + parser = + new DefaultInstanceBasedParser( + DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:FrecencyUserSettings.PlayedSoundFrecency) + private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency DEFAULT_INSTANCE; + static { + PlayedSoundFrecency defaultInstance = new PlayedSoundFrecency(); + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = defaultInstance; + com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( + PlayedSoundFrecency.class, defaultInstance); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } - /** - * .FrecencyUserSettings.GIFType format = 1; - * - * @param value The format to set. - */ - private void setFormat(FrecencyUserSettingsOuterClass.FrecencyUserSettings.GIFType value) { - format_ = value.getNumber(); + public interface GuildAndChannelFrecencyOrBuilder extends + // @@protoc_insertion_point(interface_extends:FrecencyUserSettings.GuildAndChannelFrecency) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; + */ + int getGuildAndChannelsCount(); + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; + */ + boolean containsGuildAndChannels( + long key); + /** + * Use {@link #getGuildAndChannelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getGuildAndChannels(); + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; + */ + java.util.Map + getGuildAndChannelsMap(); + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; + */ + + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getGuildAndChannelsOrDefault( + long key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue); + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; + */ + + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getGuildAndChannelsOrThrow( + long key); + } + /** + * Protobuf type {@code FrecencyUserSettings.GuildAndChannelFrecency} + */ + public static final class GuildAndChannelFrecency extends + com.google.protobuf.GeneratedMessageLite< + GuildAndChannelFrecency, GuildAndChannelFrecency.Builder> implements + // @@protoc_insertion_point(message_implements:FrecencyUserSettings.GuildAndChannelFrecency) + GuildAndChannelFrecencyOrBuilder { + private GuildAndChannelFrecency() { + } + public static final int GUILD_AND_CHANNELS_FIELD_NUMBER = 1; + private static final class GuildAndChannelsDefaultEntryHolder { + static final com.google.protobuf.MapEntryLite< + java.lang.Long, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> defaultEntry = + com.google.protobuf.MapEntryLite + .newDefaultInstance( + com.google.protobuf.WireFormat.FieldType.FIXED64, + 0L, + com.google.protobuf.WireFormat.FieldType.MESSAGE, + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem.getDefaultInstance()); + } + private com.google.protobuf.MapFieldLite< + java.lang.Long, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> guildAndChannels_ = + com.google.protobuf.MapFieldLite.emptyMapField(); + private com.google.protobuf.MapFieldLite + internalGetGuildAndChannels() { + return guildAndChannels_; + } + private com.google.protobuf.MapFieldLite + internalGetMutableGuildAndChannels() { + if (!guildAndChannels_.isMutable()) { + guildAndChannels_ = guildAndChannels_.mutableCopy(); + } + return guildAndChannels_; + } + @java.lang.Override + + public int getGuildAndChannelsCount() { + return internalGetGuildAndChannels().size(); + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; + */ + @java.lang.Override + + public boolean containsGuildAndChannels( + long key) { + + return internalGetGuildAndChannels().containsKey(key); + } + /** + * Use {@link #getGuildAndChannelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getGuildAndChannels() { + return getGuildAndChannelsMap(); + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; + */ + @java.lang.Override + + public java.util.Map getGuildAndChannelsMap() { + return java.util.Collections.unmodifiableMap( + internalGetGuildAndChannels()); + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; + */ + @java.lang.Override + + public /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getGuildAndChannelsOrDefault( + long key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { + + java.util.Map map = + internalGetGuildAndChannels(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; + */ + @java.lang.Override + + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getGuildAndChannelsOrThrow( + long key) { + + java.util.Map map = + internalGetGuildAndChannels(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; + */ + private java.util.Map + getMutableGuildAndChannelsMap() { + return internalGetMutableGuildAndChannels(); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency prototype) { + return DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + * Protobuf type {@code FrecencyUserSettings.GuildAndChannelFrecency} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency, Builder> implements + // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.GuildAndChannelFrecency) + FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecencyOrBuilder { + // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } - } - /** - * .FrecencyUserSettings.GIFType format = 1; - */ - private void clearFormat() { + @java.lang.Override - format_ = 0; - } + public int getGuildAndChannelsCount() { + return instance.getGuildAndChannelsMap().size(); + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; + */ + @java.lang.Override - /** - * string src = 2; - * - * @return The src. - */ - @java.lang.Override - public java.lang.String getSrc() { - return src_; - } + public boolean containsGuildAndChannels( + long key) { - /** - * string src = 2; - * - * @param value The src to set. - */ - private void setSrc( - java.lang.String value) { - java.lang.Class valueClass = value.getClass(); + return instance.getGuildAndChannelsMap().containsKey(key); + } - src_ = value; - } + public Builder clearGuildAndChannels() { + copyOnWrite(); + instance.getMutableGuildAndChannelsMap().clear(); + return this; + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; + */ - /** - * string src = 2; - * - * @return The bytes for src. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSrcBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(src_); - } + public Builder removeGuildAndChannels( + long key) { - /** - * string src = 2; - * - * @param value The bytes for src to set. - */ - private void setSrcBytes( - com.google.protobuf.ByteString value) { - checkByteStringIsUtf8(value); - src_ = value.toStringUtf8(); + copyOnWrite(); + instance.getMutableGuildAndChannelsMap().remove(key); + return this; + } + /** + * Use {@link #getGuildAndChannelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getGuildAndChannels() { + return getGuildAndChannelsMap(); + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; + */ + @java.lang.Override + public java.util.Map getGuildAndChannelsMap() { + return java.util.Collections.unmodifiableMap( + instance.getGuildAndChannelsMap()); + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; + */ + @java.lang.Override - } + public /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getGuildAndChannelsOrDefault( + long key, + /* nullable */ +FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { - /** - * string src = 2; - */ - private void clearSrc() { + java.util.Map map = + instance.getGuildAndChannelsMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; + */ + @java.lang.Override - src_ = getDefaultInstance().getSrc(); - } + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getGuildAndChannelsOrThrow( + long key) { - /** - * uint32 width = 3; - * - * @return The width. - */ - @java.lang.Override - public int getWidth() { - return width_; - } + java.util.Map map = + instance.getGuildAndChannelsMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; + */ + public Builder putGuildAndChannels( + long key, + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem value) { + + java.lang.Class valueClass = value.getClass(); + copyOnWrite(); + instance.getMutableGuildAndChannelsMap().put(key, value); + return this; + } + /** + * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; + */ + public Builder putAllGuildAndChannels( + java.util.Map values) { + copyOnWrite(); + instance.getMutableGuildAndChannelsMap().putAll(values); + return this; + } - /** - * uint32 width = 3; - * - * @param value The width to set. - */ - private void setWidth(int value) { + // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.GuildAndChannelFrecency) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency(); + } + case NEW_BUILDER: { + return new Builder(); + } + case BUILD_MESSAGE_INFO: { + java.lang.Object[] objects = new java.lang.Object[] { + "guildAndChannels_", + GuildAndChannelsDefaultEntryHolder.defaultEntry, + }; + java.lang.String info = + "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u00012"; + return newMessageInfo(DEFAULT_INSTANCE, info, objects); + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency.class) { + parser = PARSER; + if (parser == null) { + parser = + new DefaultInstanceBasedParser( + DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:FrecencyUserSettings.GuildAndChannelFrecency) + private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency DEFAULT_INSTANCE; + static { + GuildAndChannelFrecency defaultInstance = new GuildAndChannelFrecency(); + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = defaultInstance; + com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( + GuildAndChannelFrecency.class, defaultInstance); + } + + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } - width_ = value; - } - - /** - * uint32 width = 3; - */ - private void clearWidth() { - - width_ = 0; - } - - /** - * uint32 height = 4; - * - * @return The height. - */ - @java.lang.Override - public int getHeight() { - return height_; - } - - /** - * uint32 height = 4; - * - * @param value The height to set. - */ - private void setHeight(int value) { - - height_ = value; - } - - /** - * uint32 height = 4; - */ - private void clearHeight() { - - height_ = 0; - } - - /** - * uint32 order = 5; - * - * @return The order. - */ - @java.lang.Override - public int getOrder() { - return order_; - } - - /** - * uint32 order = 5; - * - * @param value The order to set. - */ - private void setOrder(int value) { - - order_ = value; - } - - /** - * uint32 order = 5; - */ - private void clearOrder() { - - order_ = 0; - } - - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF(); - } - case NEW_BUILDER: { - return new Builder(); - } - case BUILD_MESSAGE_INFO: { - java.lang.Object[] objects = new java.lang.Object[]{ - "format_", - "src_", - "width_", - "height_", - "order_", - }; - java.lang.String info = - "\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0000\u0000\u0000\u0001\f\u0002\u0208" + - "\u0003\u000b\u0004\u000b\u0005\u000b"; - return newMessageInfo(DEFAULT_INSTANCE, info, objects); - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF.class) { - parser = PARSER; - if (parser == null) { - parser = - new DefaultInstanceBasedParser( - DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } - } - throw new UnsupportedOperationException(); - } - - /** - * Protobuf type {@code FrecencyUserSettings.FavoriteGIF} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF, Builder> implements - // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.FavoriteGIF) - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFOrBuilder { - // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - * .FrecencyUserSettings.GIFType format = 1; - * - * @return The enum numeric value on the wire for format. - */ - @java.lang.Override - public int getFormatValue() { - return instance.getFormatValue(); - } - - /** - * .FrecencyUserSettings.GIFType format = 1; - * - * @param value The format to set. - * @return This builder for chaining. - */ - public Builder setFormatValue(int value) { - copyOnWrite(); - instance.setFormatValue(value); - return this; - } - - /** - * .FrecencyUserSettings.GIFType format = 1; - * - * @return The format. - */ - @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.GIFType getFormat() { - return instance.getFormat(); - } - - /** - * .FrecencyUserSettings.GIFType format = 1; - * - * @param value The enum numeric value on the wire for format to set. - * @return This builder for chaining. - */ - public Builder setFormat(FrecencyUserSettingsOuterClass.FrecencyUserSettings.GIFType value) { - copyOnWrite(); - instance.setFormat(value); - return this; - } - - /** - * .FrecencyUserSettings.GIFType format = 1; - * - * @return This builder for chaining. - */ - public Builder clearFormat() { - copyOnWrite(); - instance.clearFormat(); - return this; - } - - /** - * string src = 2; - * - * @return The src. - */ - @java.lang.Override - public java.lang.String getSrc() { - return instance.getSrc(); - } - - /** - * string src = 2; - * - * @param value The src to set. - * @return This builder for chaining. - */ - public Builder setSrc( - java.lang.String value) { - copyOnWrite(); - instance.setSrc(value); - return this; - } - - /** - * string src = 2; - * - * @return The bytes for src. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSrcBytes() { - return instance.getSrcBytes(); - } - - /** - * string src = 2; - * - * @param value The bytes for src to set. - * @return This builder for chaining. - */ - public Builder setSrcBytes( - com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setSrcBytes(value); - return this; - } - - /** - * string src = 2; - * - * @return This builder for chaining. - */ - public Builder clearSrc() { - copyOnWrite(); - instance.clearSrc(); - return this; - } - - /** - * uint32 width = 3; - * - * @return The width. - */ - @java.lang.Override - public int getWidth() { - return instance.getWidth(); - } - - /** - * uint32 width = 3; - * - * @param value The width to set. - * @return This builder for chaining. - */ - public Builder setWidth(int value) { - copyOnWrite(); - instance.setWidth(value); - return this; - } - - /** - * uint32 width = 3; - * - * @return This builder for chaining. - */ - public Builder clearWidth() { - copyOnWrite(); - instance.clearWidth(); - return this; - } - - /** - * uint32 height = 4; - * - * @return The height. - */ - @java.lang.Override - public int getHeight() { - return instance.getHeight(); - } - - /** - * uint32 height = 4; - * - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(int value) { - copyOnWrite(); - instance.setHeight(value); - return this; - } - - /** - * uint32 height = 4; - * - * @return This builder for chaining. - */ - public Builder clearHeight() { - copyOnWrite(); - instance.clearHeight(); - return this; - } - - /** - * uint32 order = 5; - * - * @return The order. - */ - @java.lang.Override - public int getOrder() { - return instance.getOrder(); - } - - /** - * uint32 order = 5; - * - * @param value The order to set. - * @return This builder for chaining. - */ - public Builder setOrder(int value) { - copyOnWrite(); - instance.setOrder(value); - return this; - } - - /** - * uint32 order = 5; - * - * @return This builder for chaining. - */ - public Builder clearOrder() { - copyOnWrite(); - instance.clearOrder(); - return this; - } - - // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.FavoriteGIF) - } - } - - /** - * Protobuf type {@code FrecencyUserSettings.FavoriteGIFs} - */ - public static final class FavoriteGIFs extends - com.google.protobuf.GeneratedMessageLite< - FavoriteGIFs, FavoriteGIFs.Builder> implements - // @@protoc_insertion_point(message_implements:FrecencyUserSettings.FavoriteGIFs) - FavoriteGIFsOrBuilder { - public static final int GIFS_FIELD_NUMBER = 1; - public static final int HIDE_TOOLTIP_FIELD_NUMBER = 2; - // @@protoc_insertion_point(class_scope:FrecencyUserSettings.FavoriteGIFs) - private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs DEFAULT_INSTANCE; - private static volatile com.google.protobuf.Parser PARSER; - - static { - FavoriteGIFs defaultInstance = new FavoriteGIFs(); - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = defaultInstance; - com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( - FavoriteGIFs.class, defaultInstance); - } - - private com.google.protobuf.MapFieldLite< - java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF> gifs_ = - com.google.protobuf.MapFieldLite.emptyMapField(); - private boolean hideTooltip_; - - private FavoriteGIFs() { - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.createBuilder(); - } - - public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs prototype) { - return DEFAULT_INSTANCE.createBuilder(prototype); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - - private com.google.protobuf.MapFieldLite - internalGetGifs() { - return gifs_; - } - - private com.google.protobuf.MapFieldLite - internalGetMutableGifs() { - if (!gifs_.isMutable()) { - gifs_ = gifs_.mutableCopy(); - } - return gifs_; - } - - @java.lang.Override - - public int getGifsCount() { - return internalGetGifs().size(); - } - - /** - * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; - */ - @java.lang.Override - - public boolean containsGifs( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - return internalGetGifs().containsKey(key); - } - - /** - * Use {@link #getGifsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getGifs() { - return getGifsMap(); - } - - /** - * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; - */ - @java.lang.Override - - public java.util.Map getGifsMap() { - return java.util.Collections.unmodifiableMap( - internalGetGifs()); - } - - /** - * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; - */ - @java.lang.Override - - public /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF getGifsOrDefault( - java.lang.String key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF defaultValue) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - internalGetGifs(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; - */ - @java.lang.Override - - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF getGifsOrThrow( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - internalGetGifs(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - /** - * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; - */ - private java.util.Map - getMutableGifsMap() { - return internalGetMutableGifs(); - } - - /** - * bool hide_tooltip = 2; - * - * @return The hideTooltip. - */ - @java.lang.Override - public boolean getHideTooltip() { - return hideTooltip_; - } - - /** - * bool hide_tooltip = 2; - * - * @param value The hideTooltip to set. - */ - private void setHideTooltip(boolean value) { - - hideTooltip_ = value; - } - - /** - * bool hide_tooltip = 2; - */ - private void clearHideTooltip() { - - hideTooltip_ = false; - } - - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs(); - } - case NEW_BUILDER: { - return new Builder(); - } - case BUILD_MESSAGE_INFO: { - java.lang.Object[] objects = new java.lang.Object[]{ - "gifs_", - GifsDefaultEntryHolder.defaultEntry, - "hideTooltip_", - }; - java.lang.String info = - "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0001\u0000\u0000\u00012\u0002\u0007"; - return newMessageInfo(DEFAULT_INSTANCE, info, objects); - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs.class) { - parser = PARSER; - if (parser == null) { - parser = - new DefaultInstanceBasedParser( - DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } - } - throw new UnsupportedOperationException(); - } - - private static final class GifsDefaultEntryHolder { - static final com.google.protobuf.MapEntryLite< - java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF> defaultEntry = - com.google.protobuf.MapEntryLite - .newDefaultInstance( - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF.getDefaultInstance()); - } - - /** - * Protobuf type {@code FrecencyUserSettings.FavoriteGIFs} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs, Builder> implements - // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.FavoriteGIFs) - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFsOrBuilder { - // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - @java.lang.Override - - public int getGifsCount() { - return instance.getGifsMap().size(); - } - - /** - * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; - */ - @java.lang.Override - - public boolean containsGifs( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - return instance.getGifsMap().containsKey(key); - } - - public Builder clearGifs() { - copyOnWrite(); - instance.getMutableGifsMap().clear(); - return this; - } - - /** - * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; - */ - - public Builder removeGifs( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - copyOnWrite(); - instance.getMutableGifsMap().remove(key); - return this; - } - - /** - * Use {@link #getGifsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getGifs() { - return getGifsMap(); - } - - /** - * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; - */ - @java.lang.Override - public java.util.Map getGifsMap() { - return java.util.Collections.unmodifiableMap( - instance.getGifsMap()); - } - - /** - * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; - */ - @java.lang.Override - - public /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF getGifsOrDefault( - java.lang.String key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF defaultValue) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - instance.getGifsMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; - */ - @java.lang.Override - - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF getGifsOrThrow( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - instance.getGifsMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - /** - * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; - */ - public Builder putGifs( - java.lang.String key, - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIF value) { - java.lang.Class keyClass = key.getClass(); - java.lang.Class valueClass = value.getClass(); - copyOnWrite(); - instance.getMutableGifsMap().put(key, value); - return this; - } - - /** - * map<string, .FrecencyUserSettings.FavoriteGIF> gifs = 1; - */ - public Builder putAllGifs( - java.util.Map values) { - copyOnWrite(); - instance.getMutableGifsMap().putAll(values); - return this; - } - - /** - * bool hide_tooltip = 2; - * - * @return The hideTooltip. - */ - @java.lang.Override - public boolean getHideTooltip() { - return instance.getHideTooltip(); - } - - /** - * bool hide_tooltip = 2; - * - * @param value The hideTooltip to set. - * @return This builder for chaining. - */ - public Builder setHideTooltip(boolean value) { - copyOnWrite(); - instance.setHideTooltip(value); - return this; - } - - /** - * bool hide_tooltip = 2; - * - * @return This builder for chaining. - */ - public Builder clearHideTooltip() { - copyOnWrite(); - instance.clearHideTooltip(); - return this; - } - - // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.FavoriteGIFs) - } - } - - /** - * Protobuf type {@code FrecencyUserSettings.FavoriteStickers} - */ - public static final class FavoriteStickers extends - com.google.protobuf.GeneratedMessageLite< - FavoriteStickers, FavoriteStickers.Builder> implements - // @@protoc_insertion_point(message_implements:FrecencyUserSettings.FavoriteStickers) - FavoriteStickersOrBuilder { - public static final int STICKER_IDS_FIELD_NUMBER = 1; - // @@protoc_insertion_point(class_scope:FrecencyUserSettings.FavoriteStickers) - private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers DEFAULT_INSTANCE; - private static volatile com.google.protobuf.Parser PARSER; - - static { - FavoriteStickers defaultInstance = new FavoriteStickers(); - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = defaultInstance; - com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( - FavoriteStickers.class, defaultInstance); - } - - private final int stickerIdsMemoizedSerializedSize = -1; - private com.google.protobuf.Internal.LongList stickerIds_; - - private FavoriteStickers() { - stickerIds_ = emptyLongList(); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.createBuilder(); - } - - public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers prototype) { - return DEFAULT_INSTANCE.createBuilder(prototype); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - - /** - * repeated fixed64 sticker_ids = 1; - * - * @return A list containing the stickerIds. - */ - @java.lang.Override - public java.util.List - getStickerIdsList() { - return stickerIds_; - } - - /** - * repeated fixed64 sticker_ids = 1; - * - * @return The count of stickerIds. - */ - @java.lang.Override - public int getStickerIdsCount() { - return stickerIds_.size(); - } - - /** - * repeated fixed64 sticker_ids = 1; - * - * @param index The index of the element to return. - * @return The stickerIds at the given index. - */ - @java.lang.Override - public long getStickerIds(int index) { - return stickerIds_.getLong(index); - } - - private void ensureStickerIdsIsMutable() { - com.google.protobuf.Internal.LongList tmp = stickerIds_; - if (!tmp.isModifiable()) { - stickerIds_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); - } - } - - /** - * repeated fixed64 sticker_ids = 1; - * - * @param index The index to set the value at. - * @param value The stickerIds to set. - */ - private void setStickerIds( - int index, long value) { - ensureStickerIdsIsMutable(); - stickerIds_.setLong(index, value); - } - - /** - * repeated fixed64 sticker_ids = 1; - * - * @param value The stickerIds to add. - */ - private void addStickerIds(long value) { - ensureStickerIdsIsMutable(); - stickerIds_.addLong(value); - } - - /** - * repeated fixed64 sticker_ids = 1; - * - * @param values The stickerIds to add. - */ - private void addAllStickerIds( - java.lang.Iterable values) { - ensureStickerIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, stickerIds_); - } - - /** - * repeated fixed64 sticker_ids = 1; - */ - private void clearStickerIds() { - stickerIds_ = emptyLongList(); - } - - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers(); - } - case NEW_BUILDER: { - return new Builder(); - } - case BUILD_MESSAGE_INFO: { - java.lang.Object[] objects = new java.lang.Object[]{ - "stickerIds_", - }; - java.lang.String info = - "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001("; - return newMessageInfo(DEFAULT_INSTANCE, info, objects); - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers.class) { - parser = PARSER; - if (parser == null) { - parser = - new DefaultInstanceBasedParser( - DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } - } - throw new UnsupportedOperationException(); - } - - /** - * Protobuf type {@code FrecencyUserSettings.FavoriteStickers} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers, Builder> implements - // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.FavoriteStickers) - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickersOrBuilder { - // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - * repeated fixed64 sticker_ids = 1; - * - * @return A list containing the stickerIds. - */ - @java.lang.Override - public java.util.List - getStickerIdsList() { - return java.util.Collections.unmodifiableList( - instance.getStickerIdsList()); - } - - /** - * repeated fixed64 sticker_ids = 1; - * - * @return The count of stickerIds. - */ - @java.lang.Override - public int getStickerIdsCount() { - return instance.getStickerIdsCount(); - } - - /** - * repeated fixed64 sticker_ids = 1; - * - * @param index The index of the element to return. - * @return The stickerIds at the given index. - */ - @java.lang.Override - public long getStickerIds(int index) { - return instance.getStickerIds(index); - } - - /** - * repeated fixed64 sticker_ids = 1; - * - * @param value The stickerIds to set. - * @return This builder for chaining. - */ - public Builder setStickerIds( - int index, long value) { - copyOnWrite(); - instance.setStickerIds(index, value); - return this; - } - - /** - * repeated fixed64 sticker_ids = 1; - * - * @param value The stickerIds to add. - * @return This builder for chaining. - */ - public Builder addStickerIds(long value) { - copyOnWrite(); - instance.addStickerIds(value); - return this; - } - - /** - * repeated fixed64 sticker_ids = 1; - * - * @param values The stickerIds to add. - * @return This builder for chaining. - */ - public Builder addAllStickerIds( - java.lang.Iterable values) { - copyOnWrite(); - instance.addAllStickerIds(values); - return this; - } - - /** - * repeated fixed64 sticker_ids = 1; - * - * @return This builder for chaining. - */ - public Builder clearStickerIds() { - copyOnWrite(); - instance.clearStickerIds(); - return this; - } - - // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.FavoriteStickers) - } - } - - /** - * Protobuf type {@code FrecencyUserSettings.FrecencyItem} - */ - public static final class FrecencyItem extends - com.google.protobuf.GeneratedMessageLite< - FrecencyItem, FrecencyItem.Builder> implements - // @@protoc_insertion_point(message_implements:FrecencyUserSettings.FrecencyItem) - FrecencyItemOrBuilder { - public static final int TOTAL_USES_FIELD_NUMBER = 1; - public static final int RECENT_USES_FIELD_NUMBER = 2; - public static final int FRECENCY_FIELD_NUMBER = 3; - public static final int SCORE_FIELD_NUMBER = 4; - // @@protoc_insertion_point(class_scope:FrecencyUserSettings.FrecencyItem) - private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem DEFAULT_INSTANCE; - private static volatile com.google.protobuf.Parser PARSER; - - static { - FrecencyItem defaultInstance = new FrecencyItem(); - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = defaultInstance; - com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( - FrecencyItem.class, defaultInstance); - } - - private final int recentUsesMemoizedSerializedSize = -1; - private int totalUses_; - private com.google.protobuf.Internal.LongList recentUses_; - private int frecency_; - private int score_; - - private FrecencyItem() { - recentUses_ = emptyLongList(); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.createBuilder(); - } - - public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem prototype) { - return DEFAULT_INSTANCE.createBuilder(prototype); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - - /** - * uint32 total_uses = 1; - * - * @return The totalUses. - */ - @java.lang.Override - public int getTotalUses() { - return totalUses_; - } - - /** - * uint32 total_uses = 1; - * - * @param value The totalUses to set. - */ - private void setTotalUses(int value) { - - totalUses_ = value; - } - - /** - * uint32 total_uses = 1; - */ - private void clearTotalUses() { - - totalUses_ = 0; - } - - /** - * repeated uint64 recent_uses = 2; - * - * @return A list containing the recentUses. - */ - @java.lang.Override - public java.util.List - getRecentUsesList() { - return recentUses_; - } - - /** - * repeated uint64 recent_uses = 2; - * - * @return The count of recentUses. - */ - @java.lang.Override - public int getRecentUsesCount() { - return recentUses_.size(); - } - - /** - * repeated uint64 recent_uses = 2; - * - * @param index The index of the element to return. - * @return The recentUses at the given index. - */ - @java.lang.Override - public long getRecentUses(int index) { - return recentUses_.getLong(index); - } - - private void ensureRecentUsesIsMutable() { - com.google.protobuf.Internal.LongList tmp = recentUses_; - if (!tmp.isModifiable()) { - recentUses_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); - } - } - - /** - * repeated uint64 recent_uses = 2; - * - * @param index The index to set the value at. - * @param value The recentUses to set. - */ - private void setRecentUses( - int index, long value) { - ensureRecentUsesIsMutable(); - recentUses_.setLong(index, value); - } - - /** - * repeated uint64 recent_uses = 2; - * - * @param value The recentUses to add. - */ - private void addRecentUses(long value) { - ensureRecentUsesIsMutable(); - recentUses_.addLong(value); - } - - /** - * repeated uint64 recent_uses = 2; - * - * @param values The recentUses to add. - */ - private void addAllRecentUses( - java.lang.Iterable values) { - ensureRecentUsesIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, recentUses_); - } - - /** - * repeated uint64 recent_uses = 2; - */ - private void clearRecentUses() { - recentUses_ = emptyLongList(); - } - - /** - * int32 frecency = 3; - * - * @return The frecency. - */ - @java.lang.Override - public int getFrecency() { - return frecency_; - } - - /** - * int32 frecency = 3; - * - * @param value The frecency to set. - */ - private void setFrecency(int value) { - - frecency_ = value; - } - - /** - * int32 frecency = 3; - */ - private void clearFrecency() { - - frecency_ = 0; - } - - /** - * int32 score = 4; - * - * @return The score. - */ - @java.lang.Override - public int getScore() { - return score_; - } - - /** - * int32 score = 4; - * - * @param value The score to set. - */ - private void setScore(int value) { - - score_ = value; - } - - /** - * int32 score = 4; - */ - private void clearScore() { - - score_ = 0; - } - - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem(); - } - case NEW_BUILDER: { - return new Builder(); - } - case BUILD_MESSAGE_INFO: { - java.lang.Object[] objects = new java.lang.Object[]{ - "totalUses_", - "recentUses_", - "frecency_", - "score_", - }; - java.lang.String info = - "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0001\u0000\u0001\u000b\u0002&\u0003" + - "\u0004\u0004\u0004"; - return newMessageInfo(DEFAULT_INSTANCE, info, objects); - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem.class) { - parser = PARSER; - if (parser == null) { - parser = - new DefaultInstanceBasedParser( - DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } - } - throw new UnsupportedOperationException(); - } - - /** - * Protobuf type {@code FrecencyUserSettings.FrecencyItem} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem, Builder> implements - // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.FrecencyItem) - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItemOrBuilder { - // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - * uint32 total_uses = 1; - * - * @return The totalUses. - */ - @java.lang.Override - public int getTotalUses() { - return instance.getTotalUses(); - } - - /** - * uint32 total_uses = 1; - * - * @param value The totalUses to set. - * @return This builder for chaining. - */ - public Builder setTotalUses(int value) { - copyOnWrite(); - instance.setTotalUses(value); - return this; - } - - /** - * uint32 total_uses = 1; - * - * @return This builder for chaining. - */ - public Builder clearTotalUses() { - copyOnWrite(); - instance.clearTotalUses(); - return this; - } - - /** - * repeated uint64 recent_uses = 2; - * - * @return A list containing the recentUses. - */ - @java.lang.Override - public java.util.List - getRecentUsesList() { - return java.util.Collections.unmodifiableList( - instance.getRecentUsesList()); - } - - /** - * repeated uint64 recent_uses = 2; - * - * @return The count of recentUses. - */ - @java.lang.Override - public int getRecentUsesCount() { - return instance.getRecentUsesCount(); - } - - /** - * repeated uint64 recent_uses = 2; - * - * @param index The index of the element to return. - * @return The recentUses at the given index. - */ - @java.lang.Override - public long getRecentUses(int index) { - return instance.getRecentUses(index); - } - - /** - * repeated uint64 recent_uses = 2; - * - * @param value The recentUses to set. - * @return This builder for chaining. - */ - public Builder setRecentUses( - int index, long value) { - copyOnWrite(); - instance.setRecentUses(index, value); - return this; - } - - /** - * repeated uint64 recent_uses = 2; - * - * @param value The recentUses to add. - * @return This builder for chaining. - */ - public Builder addRecentUses(long value) { - copyOnWrite(); - instance.addRecentUses(value); - return this; - } - - /** - * repeated uint64 recent_uses = 2; - * - * @param values The recentUses to add. - * @return This builder for chaining. - */ - public Builder addAllRecentUses( - java.lang.Iterable values) { - copyOnWrite(); - instance.addAllRecentUses(values); - return this; - } - - /** - * repeated uint64 recent_uses = 2; - * - * @return This builder for chaining. - */ - public Builder clearRecentUses() { - copyOnWrite(); - instance.clearRecentUses(); - return this; - } - - /** - * int32 frecency = 3; - * - * @return The frecency. - */ - @java.lang.Override - public int getFrecency() { - return instance.getFrecency(); - } - - /** - * int32 frecency = 3; - * - * @param value The frecency to set. - * @return This builder for chaining. - */ - public Builder setFrecency(int value) { - copyOnWrite(); - instance.setFrecency(value); - return this; - } - - /** - * int32 frecency = 3; - * - * @return This builder for chaining. - */ - public Builder clearFrecency() { - copyOnWrite(); - instance.clearFrecency(); - return this; - } - - /** - * int32 score = 4; - * - * @return The score. - */ - @java.lang.Override - public int getScore() { - return instance.getScore(); - } - - /** - * int32 score = 4; - * - * @param value The score to set. - * @return This builder for chaining. - */ - public Builder setScore(int value) { - copyOnWrite(); - instance.setScore(value); - return this; - } - - /** - * int32 score = 4; - * - * @return This builder for chaining. - */ - public Builder clearScore() { - copyOnWrite(); - instance.clearScore(); - return this; - } - - // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.FrecencyItem) - } - } - - /** - * Protobuf type {@code FrecencyUserSettings.StickerFrecency} - */ - public static final class StickerFrecency extends - com.google.protobuf.GeneratedMessageLite< - StickerFrecency, StickerFrecency.Builder> implements - // @@protoc_insertion_point(message_implements:FrecencyUserSettings.StickerFrecency) - StickerFrecencyOrBuilder { - public static final int STICKERS_FIELD_NUMBER = 1; - // @@protoc_insertion_point(class_scope:FrecencyUserSettings.StickerFrecency) - private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency DEFAULT_INSTANCE; - private static volatile com.google.protobuf.Parser PARSER; - - static { - StickerFrecency defaultInstance = new StickerFrecency(); - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = defaultInstance; - com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( - StickerFrecency.class, defaultInstance); - } - - private com.google.protobuf.MapFieldLite< - java.lang.Long, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> stickers_ = - com.google.protobuf.MapFieldLite.emptyMapField(); - - private StickerFrecency() { - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.createBuilder(); - } - - public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency prototype) { - return DEFAULT_INSTANCE.createBuilder(prototype); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - - private com.google.protobuf.MapFieldLite - internalGetStickers() { - return stickers_; - } - - private com.google.protobuf.MapFieldLite - internalGetMutableStickers() { - if (!stickers_.isMutable()) { - stickers_ = stickers_.mutableCopy(); - } - return stickers_; - } - - @java.lang.Override - - public int getStickersCount() { - return internalGetStickers().size(); - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; - */ - @java.lang.Override - - public boolean containsStickers( - long key) { - - return internalGetStickers().containsKey(key); - } - - /** - * Use {@link #getStickersMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getStickers() { - return getStickersMap(); - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; - */ - @java.lang.Override - - public java.util.Map getStickersMap() { - return java.util.Collections.unmodifiableMap( - internalGetStickers()); - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; - */ - @java.lang.Override - - public /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getStickersOrDefault( - long key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { - - java.util.Map map = - internalGetStickers(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; - */ - @java.lang.Override - - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getStickersOrThrow( - long key) { - - java.util.Map map = - internalGetStickers(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; - */ - private java.util.Map - getMutableStickersMap() { - return internalGetMutableStickers(); - } - - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency(); - } - case NEW_BUILDER: { - return new Builder(); - } - case BUILD_MESSAGE_INFO: { - java.lang.Object[] objects = new java.lang.Object[]{ - "stickers_", - StickersDefaultEntryHolder.defaultEntry, - }; - java.lang.String info = - "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u00012"; - return newMessageInfo(DEFAULT_INSTANCE, info, objects); - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency.class) { - parser = PARSER; - if (parser == null) { - parser = - new DefaultInstanceBasedParser( - DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } - } - throw new UnsupportedOperationException(); - } - - private static final class StickersDefaultEntryHolder { - static final com.google.protobuf.MapEntryLite< - java.lang.Long, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> defaultEntry = - com.google.protobuf.MapEntryLite - .newDefaultInstance( - com.google.protobuf.WireFormat.FieldType.FIXED64, - 0L, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem.getDefaultInstance()); - } - - /** - * Protobuf type {@code FrecencyUserSettings.StickerFrecency} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency, Builder> implements - // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.StickerFrecency) - FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecencyOrBuilder { - // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - @java.lang.Override - - public int getStickersCount() { - return instance.getStickersMap().size(); - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; - */ - @java.lang.Override - - public boolean containsStickers( - long key) { - - return instance.getStickersMap().containsKey(key); - } - - public Builder clearStickers() { - copyOnWrite(); - instance.getMutableStickersMap().clear(); - return this; - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; - */ - - public Builder removeStickers( - long key) { - - copyOnWrite(); - instance.getMutableStickersMap().remove(key); - return this; - } - - /** - * Use {@link #getStickersMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getStickers() { - return getStickersMap(); - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; - */ - @java.lang.Override - public java.util.Map getStickersMap() { - return java.util.Collections.unmodifiableMap( - instance.getStickersMap()); - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; - */ - @java.lang.Override - - public /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getStickersOrDefault( - long key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { - - java.util.Map map = - instance.getStickersMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; - */ - @java.lang.Override - - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getStickersOrThrow( - long key) { - - java.util.Map map = - instance.getStickersMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; - */ - public Builder putStickers( - long key, - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem value) { - - java.lang.Class valueClass = value.getClass(); - copyOnWrite(); - instance.getMutableStickersMap().put(key, value); - return this; - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> stickers = 1; - */ - public Builder putAllStickers( - java.util.Map values) { - copyOnWrite(); - instance.getMutableStickersMap().putAll(values); - return this; - } - - // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.StickerFrecency) - } - } - - /** - * Protobuf type {@code FrecencyUserSettings.FavoriteEmojis} - */ - public static final class FavoriteEmojis extends - com.google.protobuf.GeneratedMessageLite< - FavoriteEmojis, FavoriteEmojis.Builder> implements - // @@protoc_insertion_point(message_implements:FrecencyUserSettings.FavoriteEmojis) - FavoriteEmojisOrBuilder { - public static final int EMOJIS_FIELD_NUMBER = 1; - // @@protoc_insertion_point(class_scope:FrecencyUserSettings.FavoriteEmojis) - private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis DEFAULT_INSTANCE; - private static volatile com.google.protobuf.Parser PARSER; - - static { - FavoriteEmojis defaultInstance = new FavoriteEmojis(); - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = defaultInstance; - com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( - FavoriteEmojis.class, defaultInstance); - } - - private com.google.protobuf.Internal.ProtobufList emojis_; - - private FavoriteEmojis() { - emojis_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.createBuilder(); - } - - public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis prototype) { - return DEFAULT_INSTANCE.createBuilder(prototype); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - - /** - * repeated string emojis = 1; - * - * @return A list containing the emojis. - */ - @java.lang.Override - public java.util.List getEmojisList() { - return emojis_; - } - - /** - * repeated string emojis = 1; - * - * @return The count of emojis. - */ - @java.lang.Override - public int getEmojisCount() { - return emojis_.size(); - } - - /** - * repeated string emojis = 1; - * - * @param index The index of the element to return. - * @return The emojis at the given index. - */ - @java.lang.Override - public java.lang.String getEmojis(int index) { - return emojis_.get(index); - } - - /** - * repeated string emojis = 1; - * - * @param index The index of the value to return. - * @return The bytes of the emojis at the given index. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEmojisBytes(int index) { - return com.google.protobuf.ByteString.copyFromUtf8( - emojis_.get(index)); - } - - private void ensureEmojisIsMutable() { - com.google.protobuf.Internal.ProtobufList tmp = - emojis_; - if (!tmp.isModifiable()) { - emojis_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); - } - } - - /** - * repeated string emojis = 1; - * - * @param index The index to set the value at. - * @param value The emojis to set. - */ - private void setEmojis( - int index, java.lang.String value) { - java.lang.Class valueClass = value.getClass(); - ensureEmojisIsMutable(); - emojis_.set(index, value); - } - - /** - * repeated string emojis = 1; - * - * @param value The emojis to add. - */ - private void addEmojis( - java.lang.String value) { - java.lang.Class valueClass = value.getClass(); - ensureEmojisIsMutable(); - emojis_.add(value); - } - - /** - * repeated string emojis = 1; - * - * @param values The emojis to add. - */ - private void addAllEmojis( - java.lang.Iterable values) { - ensureEmojisIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, emojis_); - } - - /** - * repeated string emojis = 1; - */ - private void clearEmojis() { - emojis_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); - } - - /** - * repeated string emojis = 1; - * - * @param value The bytes of the emojis to add. - */ - private void addEmojisBytes( - com.google.protobuf.ByteString value) { - checkByteStringIsUtf8(value); - ensureEmojisIsMutable(); - emojis_.add(value.toStringUtf8()); - } - - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis(); - } - case NEW_BUILDER: { - return new Builder(); - } - case BUILD_MESSAGE_INFO: { - java.lang.Object[] objects = new java.lang.Object[]{ - "emojis_", - }; - java.lang.String info = - "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u021a"; - return newMessageInfo(DEFAULT_INSTANCE, info, objects); - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis.class) { - parser = PARSER; - if (parser == null) { - parser = - new DefaultInstanceBasedParser( - DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } - } - throw new UnsupportedOperationException(); - } - - /** - * Protobuf type {@code FrecencyUserSettings.FavoriteEmojis} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis, Builder> implements - // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.FavoriteEmojis) - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojisOrBuilder { - // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - * repeated string emojis = 1; - * - * @return A list containing the emojis. - */ - @java.lang.Override - public java.util.List - getEmojisList() { - return java.util.Collections.unmodifiableList( - instance.getEmojisList()); - } - - /** - * repeated string emojis = 1; - * - * @return The count of emojis. - */ - @java.lang.Override - public int getEmojisCount() { - return instance.getEmojisCount(); - } - - /** - * repeated string emojis = 1; - * - * @param index The index of the element to return. - * @return The emojis at the given index. - */ - @java.lang.Override - public java.lang.String getEmojis(int index) { - return instance.getEmojis(index); - } - - /** - * repeated string emojis = 1; - * - * @param index The index of the value to return. - * @return The bytes of the emojis at the given index. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEmojisBytes(int index) { - return instance.getEmojisBytes(index); - } - - /** - * repeated string emojis = 1; - * - * @param index The index to set the value at. - * @param value The emojis to set. - * @return This builder for chaining. - */ - public Builder setEmojis( - int index, java.lang.String value) { - copyOnWrite(); - instance.setEmojis(index, value); - return this; - } - - /** - * repeated string emojis = 1; - * - * @param value The emojis to add. - * @return This builder for chaining. - */ - public Builder addEmojis( - java.lang.String value) { - copyOnWrite(); - instance.addEmojis(value); - return this; - } - - /** - * repeated string emojis = 1; - * - * @param values The emojis to add. - * @return This builder for chaining. - */ - public Builder addAllEmojis( - java.lang.Iterable values) { - copyOnWrite(); - instance.addAllEmojis(values); - return this; - } - - /** - * repeated string emojis = 1; - * - * @return This builder for chaining. - */ - public Builder clearEmojis() { - copyOnWrite(); - instance.clearEmojis(); - return this; - } - - /** - * repeated string emojis = 1; - * - * @param value The bytes of the emojis to add. - * @return This builder for chaining. - */ - public Builder addEmojisBytes( - com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.addEmojisBytes(value); - return this; - } - - // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.FavoriteEmojis) - } - } - - /** - * Protobuf type {@code FrecencyUserSettings.EmojiFrecency} - */ - public static final class EmojiFrecency extends - com.google.protobuf.GeneratedMessageLite< - EmojiFrecency, EmojiFrecency.Builder> implements - // @@protoc_insertion_point(message_implements:FrecencyUserSettings.EmojiFrecency) - EmojiFrecencyOrBuilder { - public static final int EMOJIS_FIELD_NUMBER = 1; - // @@protoc_insertion_point(class_scope:FrecencyUserSettings.EmojiFrecency) - private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency DEFAULT_INSTANCE; - private static volatile com.google.protobuf.Parser PARSER; - - static { - EmojiFrecency defaultInstance = new EmojiFrecency(); - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = defaultInstance; - com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( - EmojiFrecency.class, defaultInstance); - } - - private com.google.protobuf.MapFieldLite< - java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> emojis_ = - com.google.protobuf.MapFieldLite.emptyMapField(); - - private EmojiFrecency() { - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.createBuilder(); - } - - public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency prototype) { - return DEFAULT_INSTANCE.createBuilder(prototype); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - - private com.google.protobuf.MapFieldLite - internalGetEmojis() { - return emojis_; - } - - private com.google.protobuf.MapFieldLite - internalGetMutableEmojis() { - if (!emojis_.isMutable()) { - emojis_ = emojis_.mutableCopy(); - } - return emojis_; - } - - @java.lang.Override - - public int getEmojisCount() { - return internalGetEmojis().size(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; - */ - @java.lang.Override - - public boolean containsEmojis( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - return internalGetEmojis().containsKey(key); - } - - /** - * Use {@link #getEmojisMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getEmojis() { - return getEmojisMap(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; - */ - @java.lang.Override - - public java.util.Map getEmojisMap() { - return java.util.Collections.unmodifiableMap( - internalGetEmojis()); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; - */ - @java.lang.Override - - public /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getEmojisOrDefault( - java.lang.String key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - internalGetEmojis(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; - */ - @java.lang.Override - - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getEmojisOrThrow( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - internalGetEmojis(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; - */ - private java.util.Map - getMutableEmojisMap() { - return internalGetMutableEmojis(); - } - - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency(); - } - case NEW_BUILDER: { - return new Builder(); - } - case BUILD_MESSAGE_INFO: { - java.lang.Object[] objects = new java.lang.Object[]{ - "emojis_", - EmojisDefaultEntryHolder.defaultEntry, - }; - java.lang.String info = - "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u00012"; - return newMessageInfo(DEFAULT_INSTANCE, info, objects); - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency.class) { - parser = PARSER; - if (parser == null) { - parser = - new DefaultInstanceBasedParser( - DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } - } - throw new UnsupportedOperationException(); - } - - private static final class EmojisDefaultEntryHolder { - static final com.google.protobuf.MapEntryLite< - java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> defaultEntry = - com.google.protobuf.MapEntryLite - .newDefaultInstance( - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem.getDefaultInstance()); - } - - /** - * Protobuf type {@code FrecencyUserSettings.EmojiFrecency} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency, Builder> implements - // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.EmojiFrecency) - FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecencyOrBuilder { - // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - @java.lang.Override - - public int getEmojisCount() { - return instance.getEmojisMap().size(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; - */ - @java.lang.Override - - public boolean containsEmojis( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - return instance.getEmojisMap().containsKey(key); - } - - public Builder clearEmojis() { - copyOnWrite(); - instance.getMutableEmojisMap().clear(); - return this; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; - */ - - public Builder removeEmojis( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - copyOnWrite(); - instance.getMutableEmojisMap().remove(key); - return this; - } - - /** - * Use {@link #getEmojisMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getEmojis() { - return getEmojisMap(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; - */ - @java.lang.Override - public java.util.Map getEmojisMap() { - return java.util.Collections.unmodifiableMap( - instance.getEmojisMap()); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; - */ - @java.lang.Override - - public /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getEmojisOrDefault( - java.lang.String key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - instance.getEmojisMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; - */ - @java.lang.Override - - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getEmojisOrThrow( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - instance.getEmojisMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; - */ - public Builder putEmojis( - java.lang.String key, - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem value) { - java.lang.Class keyClass = key.getClass(); - java.lang.Class valueClass = value.getClass(); - copyOnWrite(); - instance.getMutableEmojisMap().put(key, value); - return this; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> emojis = 1; - */ - public Builder putAllEmojis( - java.util.Map values) { - copyOnWrite(); - instance.getMutableEmojisMap().putAll(values); - return this; - } - - // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.EmojiFrecency) - } - } - - /** - * Protobuf type {@code FrecencyUserSettings.ApplicationCommandFrecency} - */ - public static final class ApplicationCommandFrecency extends - com.google.protobuf.GeneratedMessageLite< - ApplicationCommandFrecency, ApplicationCommandFrecency.Builder> implements - // @@protoc_insertion_point(message_implements:FrecencyUserSettings.ApplicationCommandFrecency) - ApplicationCommandFrecencyOrBuilder { - public static final int APPLICATION_COMMANDS_FIELD_NUMBER = 1; - // @@protoc_insertion_point(class_scope:FrecencyUserSettings.ApplicationCommandFrecency) - private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency DEFAULT_INSTANCE; - private static volatile com.google.protobuf.Parser PARSER; - - static { - ApplicationCommandFrecency defaultInstance = new ApplicationCommandFrecency(); - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = defaultInstance; - com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( - ApplicationCommandFrecency.class, defaultInstance); - } - - private com.google.protobuf.MapFieldLite< - java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> applicationCommands_ = - com.google.protobuf.MapFieldLite.emptyMapField(); - - private ApplicationCommandFrecency() { - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.createBuilder(); - } - - public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency prototype) { - return DEFAULT_INSTANCE.createBuilder(prototype); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - - private com.google.protobuf.MapFieldLite - internalGetApplicationCommands() { - return applicationCommands_; - } - - private com.google.protobuf.MapFieldLite - internalGetMutableApplicationCommands() { - if (!applicationCommands_.isMutable()) { - applicationCommands_ = applicationCommands_.mutableCopy(); - } - return applicationCommands_; - } - - @java.lang.Override - - public int getApplicationCommandsCount() { - return internalGetApplicationCommands().size(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; - */ - @java.lang.Override - - public boolean containsApplicationCommands( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - return internalGetApplicationCommands().containsKey(key); - } - - /** - * Use {@link #getApplicationCommandsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getApplicationCommands() { - return getApplicationCommandsMap(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; - */ - @java.lang.Override - - public java.util.Map getApplicationCommandsMap() { - return java.util.Collections.unmodifiableMap( - internalGetApplicationCommands()); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; - */ - @java.lang.Override - - public /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationCommandsOrDefault( - java.lang.String key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - internalGetApplicationCommands(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; - */ - @java.lang.Override - - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationCommandsOrThrow( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - internalGetApplicationCommands(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; - */ - private java.util.Map - getMutableApplicationCommandsMap() { - return internalGetMutableApplicationCommands(); - } - - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency(); - } - case NEW_BUILDER: { - return new Builder(); - } - case BUILD_MESSAGE_INFO: { - java.lang.Object[] objects = new java.lang.Object[]{ - "applicationCommands_", - ApplicationCommandsDefaultEntryHolder.defaultEntry, - }; - java.lang.String info = - "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u00012"; - return newMessageInfo(DEFAULT_INSTANCE, info, objects); - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency.class) { - parser = PARSER; - if (parser == null) { - parser = - new DefaultInstanceBasedParser( - DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } - } - throw new UnsupportedOperationException(); - } - - private static final class ApplicationCommandsDefaultEntryHolder { - static final com.google.protobuf.MapEntryLite< - java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> defaultEntry = - com.google.protobuf.MapEntryLite - .newDefaultInstance( - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem.getDefaultInstance()); - } - - /** - * Protobuf type {@code FrecencyUserSettings.ApplicationCommandFrecency} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency, Builder> implements - // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.ApplicationCommandFrecency) - FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecencyOrBuilder { - // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - @java.lang.Override - - public int getApplicationCommandsCount() { - return instance.getApplicationCommandsMap().size(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; - */ - @java.lang.Override - - public boolean containsApplicationCommands( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - return instance.getApplicationCommandsMap().containsKey(key); - } - - public Builder clearApplicationCommands() { - copyOnWrite(); - instance.getMutableApplicationCommandsMap().clear(); - return this; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; - */ - - public Builder removeApplicationCommands( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - copyOnWrite(); - instance.getMutableApplicationCommandsMap().remove(key); - return this; - } - - /** - * Use {@link #getApplicationCommandsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getApplicationCommands() { - return getApplicationCommandsMap(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; - */ - @java.lang.Override - public java.util.Map getApplicationCommandsMap() { - return java.util.Collections.unmodifiableMap( - instance.getApplicationCommandsMap()); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; - */ - @java.lang.Override - - public /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationCommandsOrDefault( - java.lang.String key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - instance.getApplicationCommandsMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; - */ - @java.lang.Override - - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationCommandsOrThrow( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - instance.getApplicationCommandsMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; - */ - public Builder putApplicationCommands( - java.lang.String key, - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem value) { - java.lang.Class keyClass = key.getClass(); - java.lang.Class valueClass = value.getClass(); - copyOnWrite(); - instance.getMutableApplicationCommandsMap().put(key, value); - return this; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> application_commands = 1; - */ - public Builder putAllApplicationCommands( - java.util.Map values) { - copyOnWrite(); - instance.getMutableApplicationCommandsMap().putAll(values); - return this; - } - - // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.ApplicationCommandFrecency) - } - } - - /** - * Protobuf type {@code FrecencyUserSettings.FavoriteSoundboardSounds} - */ - public static final class FavoriteSoundboardSounds extends - com.google.protobuf.GeneratedMessageLite< - FavoriteSoundboardSounds, FavoriteSoundboardSounds.Builder> implements - // @@protoc_insertion_point(message_implements:FrecencyUserSettings.FavoriteSoundboardSounds) - FavoriteSoundboardSoundsOrBuilder { - public static final int SOUND_IDS_FIELD_NUMBER = 1; - // @@protoc_insertion_point(class_scope:FrecencyUserSettings.FavoriteSoundboardSounds) - private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds DEFAULT_INSTANCE; - private static volatile com.google.protobuf.Parser PARSER; - - static { - FavoriteSoundboardSounds defaultInstance = new FavoriteSoundboardSounds(); - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = defaultInstance; - com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( - FavoriteSoundboardSounds.class, defaultInstance); - } - - private final int soundIdsMemoizedSerializedSize = -1; - private com.google.protobuf.Internal.LongList soundIds_; - - private FavoriteSoundboardSounds() { - soundIds_ = emptyLongList(); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.createBuilder(); - } - - public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds prototype) { - return DEFAULT_INSTANCE.createBuilder(prototype); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - - /** - * repeated fixed64 sound_ids = 1; - * - * @return A list containing the soundIds. - */ - @java.lang.Override - public java.util.List - getSoundIdsList() { - return soundIds_; - } - - /** - * repeated fixed64 sound_ids = 1; - * - * @return The count of soundIds. - */ - @java.lang.Override - public int getSoundIdsCount() { - return soundIds_.size(); - } - - /** - * repeated fixed64 sound_ids = 1; - * - * @param index The index of the element to return. - * @return The soundIds at the given index. - */ - @java.lang.Override - public long getSoundIds(int index) { - return soundIds_.getLong(index); - } - - private void ensureSoundIdsIsMutable() { - com.google.protobuf.Internal.LongList tmp = soundIds_; - if (!tmp.isModifiable()) { - soundIds_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); - } - } - - /** - * repeated fixed64 sound_ids = 1; - * - * @param index The index to set the value at. - * @param value The soundIds to set. - */ - private void setSoundIds( - int index, long value) { - ensureSoundIdsIsMutable(); - soundIds_.setLong(index, value); - } - - /** - * repeated fixed64 sound_ids = 1; - * - * @param value The soundIds to add. - */ - private void addSoundIds(long value) { - ensureSoundIdsIsMutable(); - soundIds_.addLong(value); - } - - /** - * repeated fixed64 sound_ids = 1; - * - * @param values The soundIds to add. - */ - private void addAllSoundIds( - java.lang.Iterable values) { - ensureSoundIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, soundIds_); - } - - /** - * repeated fixed64 sound_ids = 1; - */ - private void clearSoundIds() { - soundIds_ = emptyLongList(); - } - - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds(); - } - case NEW_BUILDER: { - return new Builder(); - } - case BUILD_MESSAGE_INFO: { - java.lang.Object[] objects = new java.lang.Object[]{ - "soundIds_", - }; - java.lang.String info = - "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001("; - return newMessageInfo(DEFAULT_INSTANCE, info, objects); - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds.class) { - parser = PARSER; - if (parser == null) { - parser = - new DefaultInstanceBasedParser( - DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } - } - throw new UnsupportedOperationException(); - } - - /** - * Protobuf type {@code FrecencyUserSettings.FavoriteSoundboardSounds} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds, Builder> implements - // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.FavoriteSoundboardSounds) - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSoundsOrBuilder { - // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - * repeated fixed64 sound_ids = 1; - * - * @return A list containing the soundIds. - */ - @java.lang.Override - public java.util.List - getSoundIdsList() { - return java.util.Collections.unmodifiableList( - instance.getSoundIdsList()); - } - - /** - * repeated fixed64 sound_ids = 1; - * - * @return The count of soundIds. - */ - @java.lang.Override - public int getSoundIdsCount() { - return instance.getSoundIdsCount(); - } - - /** - * repeated fixed64 sound_ids = 1; - * - * @param index The index of the element to return. - * @return The soundIds at the given index. - */ - @java.lang.Override - public long getSoundIds(int index) { - return instance.getSoundIds(index); - } - - /** - * repeated fixed64 sound_ids = 1; - * - * @param value The soundIds to set. - * @return This builder for chaining. - */ - public Builder setSoundIds( - int index, long value) { - copyOnWrite(); - instance.setSoundIds(index, value); - return this; - } - - /** - * repeated fixed64 sound_ids = 1; - * - * @param value The soundIds to add. - * @return This builder for chaining. - */ - public Builder addSoundIds(long value) { - copyOnWrite(); - instance.addSoundIds(value); - return this; - } - - /** - * repeated fixed64 sound_ids = 1; - * - * @param values The soundIds to add. - * @return This builder for chaining. - */ - public Builder addAllSoundIds( - java.lang.Iterable values) { - copyOnWrite(); - instance.addAllSoundIds(values); - return this; - } - - /** - * repeated fixed64 sound_ids = 1; - * - * @return This builder for chaining. - */ - public Builder clearSoundIds() { - copyOnWrite(); - instance.clearSoundIds(); - return this; - } - - // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.FavoriteSoundboardSounds) - } - } - - /** - * Protobuf type {@code FrecencyUserSettings.ApplicationFrecency} - */ - public static final class ApplicationFrecency extends - com.google.protobuf.GeneratedMessageLite< - ApplicationFrecency, ApplicationFrecency.Builder> implements - // @@protoc_insertion_point(message_implements:FrecencyUserSettings.ApplicationFrecency) - ApplicationFrecencyOrBuilder { - public static final int APPLICATIONS_FIELD_NUMBER = 1; - // @@protoc_insertion_point(class_scope:FrecencyUserSettings.ApplicationFrecency) - private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency DEFAULT_INSTANCE; - private static volatile com.google.protobuf.Parser PARSER; - - static { - ApplicationFrecency defaultInstance = new ApplicationFrecency(); - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = defaultInstance; - com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( - ApplicationFrecency.class, defaultInstance); - } - - private com.google.protobuf.MapFieldLite< - java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> applications_ = - com.google.protobuf.MapFieldLite.emptyMapField(); - - private ApplicationFrecency() { - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.createBuilder(); - } - - public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency prototype) { - return DEFAULT_INSTANCE.createBuilder(prototype); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - - private com.google.protobuf.MapFieldLite - internalGetApplications() { - return applications_; - } - - private com.google.protobuf.MapFieldLite - internalGetMutableApplications() { - if (!applications_.isMutable()) { - applications_ = applications_.mutableCopy(); - } - return applications_; - } - - @java.lang.Override - - public int getApplicationsCount() { - return internalGetApplications().size(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; - */ - @java.lang.Override - - public boolean containsApplications( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - return internalGetApplications().containsKey(key); - } - - /** - * Use {@link #getApplicationsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getApplications() { - return getApplicationsMap(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; - */ - @java.lang.Override - - public java.util.Map getApplicationsMap() { - return java.util.Collections.unmodifiableMap( - internalGetApplications()); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; - */ - @java.lang.Override - - public /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationsOrDefault( - java.lang.String key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - internalGetApplications(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; - */ - @java.lang.Override - - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationsOrThrow( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - internalGetApplications(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; - */ - private java.util.Map - getMutableApplicationsMap() { - return internalGetMutableApplications(); - } - - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency(); - } - case NEW_BUILDER: { - return new Builder(); - } - case BUILD_MESSAGE_INFO: { - java.lang.Object[] objects = new java.lang.Object[]{ - "applications_", - ApplicationsDefaultEntryHolder.defaultEntry, - }; - java.lang.String info = - "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u00012"; - return newMessageInfo(DEFAULT_INSTANCE, info, objects); - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency.class) { - parser = PARSER; - if (parser == null) { - parser = - new DefaultInstanceBasedParser( - DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } - } - throw new UnsupportedOperationException(); - } - - private static final class ApplicationsDefaultEntryHolder { - static final com.google.protobuf.MapEntryLite< - java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> defaultEntry = - com.google.protobuf.MapEntryLite - .newDefaultInstance( - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem.getDefaultInstance()); - } - - /** - * Protobuf type {@code FrecencyUserSettings.ApplicationFrecency} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency, Builder> implements - // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.ApplicationFrecency) - FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecencyOrBuilder { - // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - @java.lang.Override - - public int getApplicationsCount() { - return instance.getApplicationsMap().size(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; - */ - @java.lang.Override - - public boolean containsApplications( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - return instance.getApplicationsMap().containsKey(key); - } - - public Builder clearApplications() { - copyOnWrite(); - instance.getMutableApplicationsMap().clear(); - return this; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; - */ - - public Builder removeApplications( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - copyOnWrite(); - instance.getMutableApplicationsMap().remove(key); - return this; - } - - /** - * Use {@link #getApplicationsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getApplications() { - return getApplicationsMap(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; - */ - @java.lang.Override - public java.util.Map getApplicationsMap() { - return java.util.Collections.unmodifiableMap( - instance.getApplicationsMap()); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; - */ - @java.lang.Override - - public /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationsOrDefault( - java.lang.String key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - instance.getApplicationsMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; - */ - @java.lang.Override - - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getApplicationsOrThrow( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - instance.getApplicationsMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; - */ - public Builder putApplications( - java.lang.String key, - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem value) { - java.lang.Class keyClass = key.getClass(); - java.lang.Class valueClass = value.getClass(); - copyOnWrite(); - instance.getMutableApplicationsMap().put(key, value); - return this; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> applications = 1; - */ - public Builder putAllApplications( - java.util.Map values) { - copyOnWrite(); - instance.getMutableApplicationsMap().putAll(values); - return this; - } - - // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.ApplicationFrecency) - } - } - - /** - * Protobuf type {@code FrecencyUserSettings.HeardSoundFrecency} - */ - public static final class HeardSoundFrecency extends - com.google.protobuf.GeneratedMessageLite< - HeardSoundFrecency, HeardSoundFrecency.Builder> implements - // @@protoc_insertion_point(message_implements:FrecencyUserSettings.HeardSoundFrecency) - HeardSoundFrecencyOrBuilder { - public static final int HEARD_SOUNDS_FIELD_NUMBER = 1; - // @@protoc_insertion_point(class_scope:FrecencyUserSettings.HeardSoundFrecency) - private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency DEFAULT_INSTANCE; - private static volatile com.google.protobuf.Parser PARSER; - - static { - HeardSoundFrecency defaultInstance = new HeardSoundFrecency(); - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = defaultInstance; - com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( - HeardSoundFrecency.class, defaultInstance); - } - - private com.google.protobuf.MapFieldLite< - java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> heardSounds_ = - com.google.protobuf.MapFieldLite.emptyMapField(); - - private HeardSoundFrecency() { - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.createBuilder(); - } - - public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency prototype) { - return DEFAULT_INSTANCE.createBuilder(prototype); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - - private com.google.protobuf.MapFieldLite - internalGetHeardSounds() { - return heardSounds_; - } - - private com.google.protobuf.MapFieldLite - internalGetMutableHeardSounds() { - if (!heardSounds_.isMutable()) { - heardSounds_ = heardSounds_.mutableCopy(); - } - return heardSounds_; - } - - @java.lang.Override - - public int getHeardSoundsCount() { - return internalGetHeardSounds().size(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; - */ - @java.lang.Override - - public boolean containsHeardSounds( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - return internalGetHeardSounds().containsKey(key); - } - - /** - * Use {@link #getHeardSoundsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHeardSounds() { - return getHeardSoundsMap(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; - */ - @java.lang.Override - - public java.util.Map getHeardSoundsMap() { - return java.util.Collections.unmodifiableMap( - internalGetHeardSounds()); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; - */ - @java.lang.Override - - public /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getHeardSoundsOrDefault( - java.lang.String key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - internalGetHeardSounds(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; - */ - @java.lang.Override - - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getHeardSoundsOrThrow( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - internalGetHeardSounds(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; - */ - private java.util.Map - getMutableHeardSoundsMap() { - return internalGetMutableHeardSounds(); - } - - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency(); - } - case NEW_BUILDER: { - return new Builder(); - } - case BUILD_MESSAGE_INFO: { - java.lang.Object[] objects = new java.lang.Object[]{ - "heardSounds_", - HeardSoundsDefaultEntryHolder.defaultEntry, - }; - java.lang.String info = - "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u00012"; - return newMessageInfo(DEFAULT_INSTANCE, info, objects); - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency.class) { - parser = PARSER; - if (parser == null) { - parser = - new DefaultInstanceBasedParser( - DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } - } - throw new UnsupportedOperationException(); - } - - private static final class HeardSoundsDefaultEntryHolder { - static final com.google.protobuf.MapEntryLite< - java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> defaultEntry = - com.google.protobuf.MapEntryLite - .newDefaultInstance( - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem.getDefaultInstance()); - } - - /** - * Protobuf type {@code FrecencyUserSettings.HeardSoundFrecency} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency, Builder> implements - // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.HeardSoundFrecency) - FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecencyOrBuilder { - // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - @java.lang.Override - - public int getHeardSoundsCount() { - return instance.getHeardSoundsMap().size(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; - */ - @java.lang.Override - - public boolean containsHeardSounds( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - return instance.getHeardSoundsMap().containsKey(key); - } - - public Builder clearHeardSounds() { - copyOnWrite(); - instance.getMutableHeardSoundsMap().clear(); - return this; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; - */ - - public Builder removeHeardSounds( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - copyOnWrite(); - instance.getMutableHeardSoundsMap().remove(key); - return this; - } - - /** - * Use {@link #getHeardSoundsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHeardSounds() { - return getHeardSoundsMap(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; - */ - @java.lang.Override - public java.util.Map getHeardSoundsMap() { - return java.util.Collections.unmodifiableMap( - instance.getHeardSoundsMap()); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; - */ - @java.lang.Override - - public /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getHeardSoundsOrDefault( - java.lang.String key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - instance.getHeardSoundsMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; - */ - @java.lang.Override - - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getHeardSoundsOrThrow( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - instance.getHeardSoundsMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; - */ - public Builder putHeardSounds( - java.lang.String key, - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem value) { - java.lang.Class keyClass = key.getClass(); - java.lang.Class valueClass = value.getClass(); - copyOnWrite(); - instance.getMutableHeardSoundsMap().put(key, value); - return this; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> heard_sounds = 1; - */ - public Builder putAllHeardSounds( - java.util.Map values) { - copyOnWrite(); - instance.getMutableHeardSoundsMap().putAll(values); - return this; - } - - // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.HeardSoundFrecency) - } - } - - /** - * Protobuf type {@code FrecencyUserSettings.PlayedSoundFrecency} - */ - public static final class PlayedSoundFrecency extends - com.google.protobuf.GeneratedMessageLite< - PlayedSoundFrecency, PlayedSoundFrecency.Builder> implements - // @@protoc_insertion_point(message_implements:FrecencyUserSettings.PlayedSoundFrecency) - PlayedSoundFrecencyOrBuilder { - public static final int PLAYED_SOUNDS_FIELD_NUMBER = 1; - // @@protoc_insertion_point(class_scope:FrecencyUserSettings.PlayedSoundFrecency) - private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency DEFAULT_INSTANCE; - private static volatile com.google.protobuf.Parser PARSER; - - static { - PlayedSoundFrecency defaultInstance = new PlayedSoundFrecency(); - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = defaultInstance; - com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( - PlayedSoundFrecency.class, defaultInstance); - } - - private com.google.protobuf.MapFieldLite< - java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> playedSounds_ = - com.google.protobuf.MapFieldLite.emptyMapField(); - - private PlayedSoundFrecency() { - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.createBuilder(); - } - - public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency prototype) { - return DEFAULT_INSTANCE.createBuilder(prototype); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - - private com.google.protobuf.MapFieldLite - internalGetPlayedSounds() { - return playedSounds_; - } - - private com.google.protobuf.MapFieldLite - internalGetMutablePlayedSounds() { - if (!playedSounds_.isMutable()) { - playedSounds_ = playedSounds_.mutableCopy(); - } - return playedSounds_; - } - - @java.lang.Override - - public int getPlayedSoundsCount() { - return internalGetPlayedSounds().size(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; - */ - @java.lang.Override - - public boolean containsPlayedSounds( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - return internalGetPlayedSounds().containsKey(key); - } - - /** - * Use {@link #getPlayedSoundsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getPlayedSounds() { - return getPlayedSoundsMap(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; - */ - @java.lang.Override - - public java.util.Map getPlayedSoundsMap() { - return java.util.Collections.unmodifiableMap( - internalGetPlayedSounds()); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; - */ - @java.lang.Override - - public /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getPlayedSoundsOrDefault( - java.lang.String key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - internalGetPlayedSounds(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; - */ - @java.lang.Override - - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getPlayedSoundsOrThrow( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - internalGetPlayedSounds(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; - */ - private java.util.Map - getMutablePlayedSoundsMap() { - return internalGetMutablePlayedSounds(); - } - - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency(); - } - case NEW_BUILDER: { - return new Builder(); - } - case BUILD_MESSAGE_INFO: { - java.lang.Object[] objects = new java.lang.Object[]{ - "playedSounds_", - PlayedSoundsDefaultEntryHolder.defaultEntry, - }; - java.lang.String info = - "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u00012"; - return newMessageInfo(DEFAULT_INSTANCE, info, objects); - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency.class) { - parser = PARSER; - if (parser == null) { - parser = - new DefaultInstanceBasedParser( - DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } - } - throw new UnsupportedOperationException(); - } - - private static final class PlayedSoundsDefaultEntryHolder { - static final com.google.protobuf.MapEntryLite< - java.lang.String, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> defaultEntry = - com.google.protobuf.MapEntryLite - .newDefaultInstance( - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem.getDefaultInstance()); - } - - /** - * Protobuf type {@code FrecencyUserSettings.PlayedSoundFrecency} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency, Builder> implements - // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.PlayedSoundFrecency) - FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecencyOrBuilder { - // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - @java.lang.Override - - public int getPlayedSoundsCount() { - return instance.getPlayedSoundsMap().size(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; - */ - @java.lang.Override - - public boolean containsPlayedSounds( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - return instance.getPlayedSoundsMap().containsKey(key); - } - - public Builder clearPlayedSounds() { - copyOnWrite(); - instance.getMutablePlayedSoundsMap().clear(); - return this; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; - */ - - public Builder removePlayedSounds( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - copyOnWrite(); - instance.getMutablePlayedSoundsMap().remove(key); - return this; - } - - /** - * Use {@link #getPlayedSoundsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getPlayedSounds() { - return getPlayedSoundsMap(); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; - */ - @java.lang.Override - public java.util.Map getPlayedSoundsMap() { - return java.util.Collections.unmodifiableMap( - instance.getPlayedSoundsMap()); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; - */ - @java.lang.Override - - public /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getPlayedSoundsOrDefault( - java.lang.String key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - instance.getPlayedSoundsMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; - */ - @java.lang.Override - - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getPlayedSoundsOrThrow( - java.lang.String key) { - java.lang.Class keyClass = key.getClass(); - java.util.Map map = - instance.getPlayedSoundsMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; - */ - public Builder putPlayedSounds( - java.lang.String key, - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem value) { - java.lang.Class keyClass = key.getClass(); - java.lang.Class valueClass = value.getClass(); - copyOnWrite(); - instance.getMutablePlayedSoundsMap().put(key, value); - return this; - } - - /** - * map<string, .FrecencyUserSettings.FrecencyItem> played_sounds = 1; - */ - public Builder putAllPlayedSounds( - java.util.Map values) { - copyOnWrite(); - instance.getMutablePlayedSoundsMap().putAll(values); - return this; - } - - // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.PlayedSoundFrecency) - } - } - - /** - * Protobuf type {@code FrecencyUserSettings.GuildAndChannelFrecency} - */ - public static final class GuildAndChannelFrecency extends - com.google.protobuf.GeneratedMessageLite< - GuildAndChannelFrecency, GuildAndChannelFrecency.Builder> implements - // @@protoc_insertion_point(message_implements:FrecencyUserSettings.GuildAndChannelFrecency) - GuildAndChannelFrecencyOrBuilder { - public static final int GUILD_AND_CHANNELS_FIELD_NUMBER = 1; - // @@protoc_insertion_point(class_scope:FrecencyUserSettings.GuildAndChannelFrecency) - private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency DEFAULT_INSTANCE; - private static volatile com.google.protobuf.Parser PARSER; - - static { - GuildAndChannelFrecency defaultInstance = new GuildAndChannelFrecency(); - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = defaultInstance; - com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( - GuildAndChannelFrecency.class, defaultInstance); - } - - private com.google.protobuf.MapFieldLite< - java.lang.Long, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> guildAndChannels_ = - com.google.protobuf.MapFieldLite.emptyMapField(); - - private GuildAndChannelFrecency() { - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.createBuilder(); - } - - public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency prototype) { - return DEFAULT_INSTANCE.createBuilder(prototype); - } - - public static FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - - private com.google.protobuf.MapFieldLite - internalGetGuildAndChannels() { - return guildAndChannels_; - } - - private com.google.protobuf.MapFieldLite - internalGetMutableGuildAndChannels() { - if (!guildAndChannels_.isMutable()) { - guildAndChannels_ = guildAndChannels_.mutableCopy(); - } - return guildAndChannels_; - } - - @java.lang.Override - - public int getGuildAndChannelsCount() { - return internalGetGuildAndChannels().size(); - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; - */ - @java.lang.Override - - public boolean containsGuildAndChannels( - long key) { - - return internalGetGuildAndChannels().containsKey(key); - } - - /** - * Use {@link #getGuildAndChannelsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getGuildAndChannels() { - return getGuildAndChannelsMap(); - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; - */ - @java.lang.Override - - public java.util.Map getGuildAndChannelsMap() { - return java.util.Collections.unmodifiableMap( - internalGetGuildAndChannels()); - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; - */ - @java.lang.Override - - public /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getGuildAndChannelsOrDefault( - long key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { - - java.util.Map map = - internalGetGuildAndChannels(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; - */ - @java.lang.Override - - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getGuildAndChannelsOrThrow( - long key) { - - java.util.Map map = - internalGetGuildAndChannels(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; - */ - private java.util.Map - getMutableGuildAndChannelsMap() { - return internalGetMutableGuildAndChannels(); - } - - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency(); - } - case NEW_BUILDER: { - return new Builder(); - } - case BUILD_MESSAGE_INFO: { - java.lang.Object[] objects = new java.lang.Object[]{ - "guildAndChannels_", - GuildAndChannelsDefaultEntryHolder.defaultEntry, - }; - java.lang.String info = - "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u00012"; - return newMessageInfo(DEFAULT_INSTANCE, info, objects); - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency.class) { - parser = PARSER; - if (parser == null) { - parser = - new DefaultInstanceBasedParser( - DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } - } - throw new UnsupportedOperationException(); - } - - private static final class GuildAndChannelsDefaultEntryHolder { - static final com.google.protobuf.MapEntryLite< - java.lang.Long, FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem> defaultEntry = - com.google.protobuf.MapEntryLite - .newDefaultInstance( - com.google.protobuf.WireFormat.FieldType.FIXED64, - 0L, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem.getDefaultInstance()); - } - - /** - * Protobuf type {@code FrecencyUserSettings.GuildAndChannelFrecency} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency, Builder> implements - // @@protoc_insertion_point(builder_implements:FrecencyUserSettings.GuildAndChannelFrecency) - FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecencyOrBuilder { - // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - @java.lang.Override - - public int getGuildAndChannelsCount() { - return instance.getGuildAndChannelsMap().size(); - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; - */ - @java.lang.Override - - public boolean containsGuildAndChannels( - long key) { - - return instance.getGuildAndChannelsMap().containsKey(key); - } - - public Builder clearGuildAndChannels() { - copyOnWrite(); - instance.getMutableGuildAndChannelsMap().clear(); - return this; - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; - */ - - public Builder removeGuildAndChannels( - long key) { - - copyOnWrite(); - instance.getMutableGuildAndChannelsMap().remove(key); - return this; - } - - /** - * Use {@link #getGuildAndChannelsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getGuildAndChannels() { - return getGuildAndChannelsMap(); - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; - */ - @java.lang.Override - public java.util.Map getGuildAndChannelsMap() { - return java.util.Collections.unmodifiableMap( - instance.getGuildAndChannelsMap()); - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; - */ - @java.lang.Override - - public /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getGuildAndChannelsOrDefault( - long key, - /* nullable */ - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem defaultValue) { - - java.util.Map map = - instance.getGuildAndChannelsMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; - */ - @java.lang.Override - - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem getGuildAndChannelsOrThrow( - long key) { - - java.util.Map map = - instance.getGuildAndChannelsMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; - */ - public Builder putGuildAndChannels( - long key, - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FrecencyItem value) { - - java.lang.Class valueClass = value.getClass(); - copyOnWrite(); - instance.getMutableGuildAndChannelsMap().put(key, value); - return this; - } - - /** - * map<fixed64, .FrecencyUserSettings.FrecencyItem> guild_and_channels = 1; - */ - public Builder putAllGuildAndChannels( - java.util.Map values) { - copyOnWrite(); - instance.getMutableGuildAndChannelsMap().putAll(values); - return this; - } - - // @@protoc_insertion_point(builder_scope:FrecencyUserSettings.GuildAndChannelFrecency) - } - } - - /** - * Protobuf type {@code FrecencyUserSettings} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - FrecencyUserSettingsOuterClass.FrecencyUserSettings, Builder> implements - // @@protoc_insertion_point(builder_implements:FrecencyUserSettings) - FrecencyUserSettingsOuterClass.FrecencyUserSettingsOrBuilder { - // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - * optional .FrecencyUserSettings.Versions versions = 1; - */ - @java.lang.Override - public boolean hasVersions() { - return instance.hasVersions(); - } - - /** - * optional .FrecencyUserSettings.Versions versions = 1; - */ - @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions getVersions() { - return instance.getVersions(); - } - - /** - * optional .FrecencyUserSettings.Versions versions = 1; - */ - public Builder setVersions(FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions value) { - copyOnWrite(); - instance.setVersions(value); - return this; - } - - /** - * optional .FrecencyUserSettings.Versions versions = 1; - */ - public Builder setVersions( - FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions.Builder builderForValue) { - copyOnWrite(); - instance.setVersions(builderForValue.build()); - return this; - } - - /** - * optional .FrecencyUserSettings.Versions versions = 1; - */ - public Builder mergeVersions(FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions value) { - copyOnWrite(); - instance.mergeVersions(value); - return this; - } - - /** - * optional .FrecencyUserSettings.Versions versions = 1; - */ - public Builder clearVersions() { - copyOnWrite(); - instance.clearVersions(); - return this; - } - - /** - * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; - */ - @java.lang.Override - public boolean hasFavoriteGifs() { - return instance.hasFavoriteGifs(); - } - - /** - * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; - */ - @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs getFavoriteGifs() { - return instance.getFavoriteGifs(); - } - - /** - * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; - */ - public Builder setFavoriteGifs(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs value) { - copyOnWrite(); - instance.setFavoriteGifs(value); - return this; - } - - /** - * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; - */ - public Builder setFavoriteGifs( - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs.Builder builderForValue) { - copyOnWrite(); - instance.setFavoriteGifs(builderForValue.build()); - return this; - } - - /** - * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; - */ - public Builder mergeFavoriteGifs(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs value) { - copyOnWrite(); - instance.mergeFavoriteGifs(value); - return this; - } - - /** - * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; - */ - public Builder clearFavoriteGifs() { - copyOnWrite(); - instance.clearFavoriteGifs(); - return this; - } - - /** - * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; - */ - @java.lang.Override - public boolean hasFavoriteStickers() { - return instance.hasFavoriteStickers(); - } - - /** - * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; - */ - @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers getFavoriteStickers() { - return instance.getFavoriteStickers(); - } - - /** - * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; - */ - public Builder setFavoriteStickers(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers value) { - copyOnWrite(); - instance.setFavoriteStickers(value); - return this; - } - - /** - * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; - */ - public Builder setFavoriteStickers( - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers.Builder builderForValue) { - copyOnWrite(); - instance.setFavoriteStickers(builderForValue.build()); - return this; - } - - /** - * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; - */ - public Builder mergeFavoriteStickers(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers value) { - copyOnWrite(); - instance.mergeFavoriteStickers(value); - return this; - } - - /** - * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; - */ - public Builder clearFavoriteStickers() { - copyOnWrite(); - instance.clearFavoriteStickers(); - return this; - } - - /** - * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; - */ - @java.lang.Override - public boolean hasStickerFrecency() { - return instance.hasStickerFrecency(); - } - - /** - * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; - */ - @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency getStickerFrecency() { - return instance.getStickerFrecency(); - } - - /** - * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; - */ - public Builder setStickerFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency value) { - copyOnWrite(); - instance.setStickerFrecency(value); - return this; - } - - /** - * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; - */ - public Builder setStickerFrecency( - FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency.Builder builderForValue) { - copyOnWrite(); - instance.setStickerFrecency(builderForValue.build()); - return this; - } - - /** - * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; - */ - public Builder mergeStickerFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency value) { - copyOnWrite(); - instance.mergeStickerFrecency(value); - return this; - } - - /** - * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; - */ - public Builder clearStickerFrecency() { - copyOnWrite(); - instance.clearStickerFrecency(); - return this; - } - - /** - * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; - */ - @java.lang.Override - public boolean hasFavoriteEmojis() { - return instance.hasFavoriteEmojis(); - } - - /** - * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; - */ - @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis getFavoriteEmojis() { - return instance.getFavoriteEmojis(); - } - - /** - * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; - */ - public Builder setFavoriteEmojis(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis value) { - copyOnWrite(); - instance.setFavoriteEmojis(value); - return this; - } - - /** - * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; - */ - public Builder setFavoriteEmojis( - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis.Builder builderForValue) { - copyOnWrite(); - instance.setFavoriteEmojis(builderForValue.build()); - return this; - } - - /** - * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; - */ - public Builder mergeFavoriteEmojis(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis value) { - copyOnWrite(); - instance.mergeFavoriteEmojis(value); - return this; - } - - /** - * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; - */ - public Builder clearFavoriteEmojis() { - copyOnWrite(); - instance.clearFavoriteEmojis(); - return this; - } - - /** - * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; - */ - @java.lang.Override - public boolean hasEmojiFrecency() { - return instance.hasEmojiFrecency(); - } - - /** - * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; - */ - @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency getEmojiFrecency() { - return instance.getEmojiFrecency(); - } - - /** - * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; - */ - public Builder setEmojiFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency value) { - copyOnWrite(); - instance.setEmojiFrecency(value); - return this; - } - - /** - * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; - */ - public Builder setEmojiFrecency( - FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency.Builder builderForValue) { - copyOnWrite(); - instance.setEmojiFrecency(builderForValue.build()); - return this; - } - - /** - * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; - */ - public Builder mergeEmojiFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency value) { - copyOnWrite(); - instance.mergeEmojiFrecency(value); - return this; - } - - /** - * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; - */ - public Builder clearEmojiFrecency() { - copyOnWrite(); - instance.clearEmojiFrecency(); - return this; - } - - /** - * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; - */ - @java.lang.Override - public boolean hasApplicationCommandFrecency() { - return instance.hasApplicationCommandFrecency(); - } - - /** - * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; - */ - @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency getApplicationCommandFrecency() { - return instance.getApplicationCommandFrecency(); - } - - /** - * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; - */ - public Builder setApplicationCommandFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency value) { - copyOnWrite(); - instance.setApplicationCommandFrecency(value); - return this; - } - - /** - * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; - */ - public Builder setApplicationCommandFrecency( - FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency.Builder builderForValue) { - copyOnWrite(); - instance.setApplicationCommandFrecency(builderForValue.build()); - return this; - } - - /** - * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; - */ - public Builder mergeApplicationCommandFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency value) { - copyOnWrite(); - instance.mergeApplicationCommandFrecency(value); - return this; - } - - /** - * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; - */ - public Builder clearApplicationCommandFrecency() { - copyOnWrite(); - instance.clearApplicationCommandFrecency(); - return this; - } - - /** - * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; - */ - @java.lang.Override - public boolean hasFavoriteSoundboardSounds() { - return instance.hasFavoriteSoundboardSounds(); - } - - /** - * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; - */ - @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds getFavoriteSoundboardSounds() { - return instance.getFavoriteSoundboardSounds(); - } - - /** - * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; - */ - public Builder setFavoriteSoundboardSounds(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds value) { - copyOnWrite(); - instance.setFavoriteSoundboardSounds(value); - return this; - } - - /** - * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; - */ - public Builder setFavoriteSoundboardSounds( - FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds.Builder builderForValue) { - copyOnWrite(); - instance.setFavoriteSoundboardSounds(builderForValue.build()); - return this; - } - - /** - * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; - */ - public Builder mergeFavoriteSoundboardSounds(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds value) { - copyOnWrite(); - instance.mergeFavoriteSoundboardSounds(value); - return this; - } - - /** - * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; - */ - public Builder clearFavoriteSoundboardSounds() { - copyOnWrite(); - instance.clearFavoriteSoundboardSounds(); - return this; - } - - /** - * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; - */ - @java.lang.Override - public boolean hasApplicationFrecency() { - return instance.hasApplicationFrecency(); - } + private int bitField0_; + public static final int VERSIONS_FIELD_NUMBER = 1; + private FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions versions_; + /** + * optional .FrecencyUserSettings.Versions versions = 1; + */ + @java.lang.Override + public boolean hasVersions() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .FrecencyUserSettings.Versions versions = 1; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions getVersions() { + return versions_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions.getDefaultInstance() : versions_; + } + /** + * optional .FrecencyUserSettings.Versions versions = 1; + */ + private void setVersions(FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions value) { + value.getClass(); + versions_ = value; + bitField0_ |= 0x00000001; + } + /** + * optional .FrecencyUserSettings.Versions versions = 1; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeVersions(FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions value) { + value.getClass(); + if (versions_ != null && + versions_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions.getDefaultInstance()) { + versions_ = + FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions.newBuilder(versions_).mergeFrom(value).buildPartial(); + } else { + versions_ = value; + } + bitField0_ |= 0x00000001; + } + /** + * optional .FrecencyUserSettings.Versions versions = 1; + */ + private void clearVersions() { versions_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + } - /** - * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; - */ - @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency getApplicationFrecency() { - return instance.getApplicationFrecency(); - } + public static final int FAVORITE_GIFS_FIELD_NUMBER = 2; + private FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs favoriteGifs_; + /** + * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; + */ + @java.lang.Override + public boolean hasFavoriteGifs() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs getFavoriteGifs() { + return favoriteGifs_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs.getDefaultInstance() : favoriteGifs_; + } + /** + * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; + */ + private void setFavoriteGifs(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs value) { + value.getClass(); + favoriteGifs_ = value; + bitField0_ |= 0x00000002; + } + /** + * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeFavoriteGifs(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs value) { + value.getClass(); + if (favoriteGifs_ != null && + favoriteGifs_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs.getDefaultInstance()) { + favoriteGifs_ = + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs.newBuilder(favoriteGifs_).mergeFrom(value).buildPartial(); + } else { + favoriteGifs_ = value; + } + bitField0_ |= 0x00000002; + } + /** + * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; + */ + private void clearFavoriteGifs() { favoriteGifs_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + } - /** - * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; - */ - public Builder setApplicationFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency value) { - copyOnWrite(); - instance.setApplicationFrecency(value); - return this; - } + public static final int FAVORITE_STICKERS_FIELD_NUMBER = 3; + private FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers favoriteStickers_; + /** + * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; + */ + @java.lang.Override + public boolean hasFavoriteStickers() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers getFavoriteStickers() { + return favoriteStickers_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers.getDefaultInstance() : favoriteStickers_; + } + /** + * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; + */ + private void setFavoriteStickers(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers value) { + value.getClass(); + favoriteStickers_ = value; + bitField0_ |= 0x00000004; + } + /** + * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeFavoriteStickers(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers value) { + value.getClass(); + if (favoriteStickers_ != null && + favoriteStickers_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers.getDefaultInstance()) { + favoriteStickers_ = + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers.newBuilder(favoriteStickers_).mergeFrom(value).buildPartial(); + } else { + favoriteStickers_ = value; + } + bitField0_ |= 0x00000004; + } + /** + * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; + */ + private void clearFavoriteStickers() { favoriteStickers_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + } - /** - * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; - */ - public Builder setApplicationFrecency( - FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency.Builder builderForValue) { - copyOnWrite(); - instance.setApplicationFrecency(builderForValue.build()); - return this; - } + public static final int STICKER_FRECENCY_FIELD_NUMBER = 4; + private FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency stickerFrecency_; + /** + * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; + */ + @java.lang.Override + public boolean hasStickerFrecency() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency getStickerFrecency() { + return stickerFrecency_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency.getDefaultInstance() : stickerFrecency_; + } + /** + * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; + */ + private void setStickerFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency value) { + value.getClass(); + stickerFrecency_ = value; + bitField0_ |= 0x00000008; + } + /** + * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeStickerFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency value) { + value.getClass(); + if (stickerFrecency_ != null && + stickerFrecency_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency.getDefaultInstance()) { + stickerFrecency_ = + FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency.newBuilder(stickerFrecency_).mergeFrom(value).buildPartial(); + } else { + stickerFrecency_ = value; + } + bitField0_ |= 0x00000008; + } + /** + * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; + */ + private void clearStickerFrecency() { stickerFrecency_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + } - /** - * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; - */ - public Builder mergeApplicationFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency value) { - copyOnWrite(); - instance.mergeApplicationFrecency(value); - return this; - } + public static final int FAVORITE_EMOJIS_FIELD_NUMBER = 5; + private FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis favoriteEmojis_; + /** + * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; + */ + @java.lang.Override + public boolean hasFavoriteEmojis() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis getFavoriteEmojis() { + return favoriteEmojis_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis.getDefaultInstance() : favoriteEmojis_; + } + /** + * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; + */ + private void setFavoriteEmojis(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis value) { + value.getClass(); + favoriteEmojis_ = value; + bitField0_ |= 0x00000010; + } + /** + * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeFavoriteEmojis(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis value) { + value.getClass(); + if (favoriteEmojis_ != null && + favoriteEmojis_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis.getDefaultInstance()) { + favoriteEmojis_ = + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis.newBuilder(favoriteEmojis_).mergeFrom(value).buildPartial(); + } else { + favoriteEmojis_ = value; + } + bitField0_ |= 0x00000010; + } + /** + * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; + */ + private void clearFavoriteEmojis() { favoriteEmojis_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + } - /** - * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; - */ - public Builder clearApplicationFrecency() { - copyOnWrite(); - instance.clearApplicationFrecency(); - return this; - } + public static final int EMOJI_FRECENCY_FIELD_NUMBER = 6; + private FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency emojiFrecency_; + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; + */ + @java.lang.Override + public boolean hasEmojiFrecency() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency getEmojiFrecency() { + return emojiFrecency_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency.getDefaultInstance() : emojiFrecency_; + } + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; + */ + private void setEmojiFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency value) { + value.getClass(); + emojiFrecency_ = value; + bitField0_ |= 0x00000020; + } + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeEmojiFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency value) { + value.getClass(); + if (emojiFrecency_ != null && + emojiFrecency_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency.getDefaultInstance()) { + emojiFrecency_ = + FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency.newBuilder(emojiFrecency_).mergeFrom(value).buildPartial(); + } else { + emojiFrecency_ = value; + } + bitField0_ |= 0x00000020; + } + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; + */ + private void clearEmojiFrecency() { emojiFrecency_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + } - /** - * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; - */ - @java.lang.Override - public boolean hasHeardSoundFrecency() { - return instance.hasHeardSoundFrecency(); - } + public static final int APPLICATION_COMMAND_FRECENCY_FIELD_NUMBER = 7; + private FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency applicationCommandFrecency_; + /** + * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; + */ + @java.lang.Override + public boolean hasApplicationCommandFrecency() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency getApplicationCommandFrecency() { + return applicationCommandFrecency_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency.getDefaultInstance() : applicationCommandFrecency_; + } + /** + * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; + */ + private void setApplicationCommandFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency value) { + value.getClass(); + applicationCommandFrecency_ = value; + bitField0_ |= 0x00000040; + } + /** + * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeApplicationCommandFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency value) { + value.getClass(); + if (applicationCommandFrecency_ != null && + applicationCommandFrecency_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency.getDefaultInstance()) { + applicationCommandFrecency_ = + FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency.newBuilder(applicationCommandFrecency_).mergeFrom(value).buildPartial(); + } else { + applicationCommandFrecency_ = value; + } + bitField0_ |= 0x00000040; + } + /** + * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; + */ + private void clearApplicationCommandFrecency() { applicationCommandFrecency_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + } - /** - * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; - */ - @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency getHeardSoundFrecency() { - return instance.getHeardSoundFrecency(); - } + public static final int FAVORITE_SOUNDBOARD_SOUNDS_FIELD_NUMBER = 8; + private FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds favoriteSoundboardSounds_; + /** + * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; + */ + @java.lang.Override + public boolean hasFavoriteSoundboardSounds() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds getFavoriteSoundboardSounds() { + return favoriteSoundboardSounds_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds.getDefaultInstance() : favoriteSoundboardSounds_; + } + /** + * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; + */ + private void setFavoriteSoundboardSounds(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds value) { + value.getClass(); + favoriteSoundboardSounds_ = value; + bitField0_ |= 0x00000080; + } + /** + * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeFavoriteSoundboardSounds(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds value) { + value.getClass(); + if (favoriteSoundboardSounds_ != null && + favoriteSoundboardSounds_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds.getDefaultInstance()) { + favoriteSoundboardSounds_ = + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds.newBuilder(favoriteSoundboardSounds_).mergeFrom(value).buildPartial(); + } else { + favoriteSoundboardSounds_ = value; + } + bitField0_ |= 0x00000080; + } + /** + * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; + */ + private void clearFavoriteSoundboardSounds() { favoriteSoundboardSounds_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + } - /** - * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; - */ - public Builder setHeardSoundFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency value) { - copyOnWrite(); - instance.setHeardSoundFrecency(value); - return this; - } + public static final int APPLICATION_FRECENCY_FIELD_NUMBER = 9; + private FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency applicationFrecency_; + /** + * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; + */ + @java.lang.Override + public boolean hasApplicationFrecency() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency getApplicationFrecency() { + return applicationFrecency_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency.getDefaultInstance() : applicationFrecency_; + } + /** + * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; + */ + private void setApplicationFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency value) { + value.getClass(); + applicationFrecency_ = value; + bitField0_ |= 0x00000100; + } + /** + * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeApplicationFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency value) { + value.getClass(); + if (applicationFrecency_ != null && + applicationFrecency_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency.getDefaultInstance()) { + applicationFrecency_ = + FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency.newBuilder(applicationFrecency_).mergeFrom(value).buildPartial(); + } else { + applicationFrecency_ = value; + } + bitField0_ |= 0x00000100; + } + /** + * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; + */ + private void clearApplicationFrecency() { applicationFrecency_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + } - /** - * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; - */ - public Builder setHeardSoundFrecency( - FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency.Builder builderForValue) { - copyOnWrite(); - instance.setHeardSoundFrecency(builderForValue.build()); - return this; - } + public static final int HEARD_SOUND_FRECENCY_FIELD_NUMBER = 10; + private FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency heardSoundFrecency_; + /** + * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; + */ + @java.lang.Override + public boolean hasHeardSoundFrecency() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency getHeardSoundFrecency() { + return heardSoundFrecency_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency.getDefaultInstance() : heardSoundFrecency_; + } + /** + * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; + */ + private void setHeardSoundFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency value) { + value.getClass(); + heardSoundFrecency_ = value; + bitField0_ |= 0x00000200; + } + /** + * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeHeardSoundFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency value) { + value.getClass(); + if (heardSoundFrecency_ != null && + heardSoundFrecency_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency.getDefaultInstance()) { + heardSoundFrecency_ = + FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency.newBuilder(heardSoundFrecency_).mergeFrom(value).buildPartial(); + } else { + heardSoundFrecency_ = value; + } + bitField0_ |= 0x00000200; + } + /** + * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; + */ + private void clearHeardSoundFrecency() { heardSoundFrecency_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + } - /** - * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; - */ - public Builder mergeHeardSoundFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency value) { - copyOnWrite(); - instance.mergeHeardSoundFrecency(value); - return this; - } + public static final int PLAYED_SOUND_FRECENCY_FIELD_NUMBER = 11; + private FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency playedSoundFrecency_; + /** + * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; + */ + @java.lang.Override + public boolean hasPlayedSoundFrecency() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency getPlayedSoundFrecency() { + return playedSoundFrecency_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency.getDefaultInstance() : playedSoundFrecency_; + } + /** + * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; + */ + private void setPlayedSoundFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency value) { + value.getClass(); + playedSoundFrecency_ = value; + bitField0_ |= 0x00000400; + } + /** + * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergePlayedSoundFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency value) { + value.getClass(); + if (playedSoundFrecency_ != null && + playedSoundFrecency_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency.getDefaultInstance()) { + playedSoundFrecency_ = + FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency.newBuilder(playedSoundFrecency_).mergeFrom(value).buildPartial(); + } else { + playedSoundFrecency_ = value; + } + bitField0_ |= 0x00000400; + } + /** + * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; + */ + private void clearPlayedSoundFrecency() { playedSoundFrecency_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + } - /** - * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; - */ - public Builder clearHeardSoundFrecency() { - copyOnWrite(); - instance.clearHeardSoundFrecency(); - return this; - } + public static final int GUILD_AND_CHANNEL_FRECENCY_FIELD_NUMBER = 12; + private FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency guildAndChannelFrecency_; + /** + * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; + */ + @java.lang.Override + public boolean hasGuildAndChannelFrecency() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency getGuildAndChannelFrecency() { + return guildAndChannelFrecency_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency.getDefaultInstance() : guildAndChannelFrecency_; + } + /** + * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; + */ + private void setGuildAndChannelFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency value) { + value.getClass(); + guildAndChannelFrecency_ = value; + bitField0_ |= 0x00000800; + } + /** + * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeGuildAndChannelFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency value) { + value.getClass(); + if (guildAndChannelFrecency_ != null && + guildAndChannelFrecency_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency.getDefaultInstance()) { + guildAndChannelFrecency_ = + FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency.newBuilder(guildAndChannelFrecency_).mergeFrom(value).buildPartial(); + } else { + guildAndChannelFrecency_ = value; + } + bitField0_ |= 0x00000800; + } + /** + * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; + */ + private void clearGuildAndChannelFrecency() { guildAndChannelFrecency_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + } - /** - * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; - */ - @java.lang.Override - public boolean hasPlayedSoundFrecency() { - return instance.hasPlayedSoundFrecency(); - } + public static final int EMOJI_REACTION_FRECENCY_FIELD_NUMBER = 13; + private FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency emojiReactionFrecency_; + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_reaction_frecency = 13; + */ + @java.lang.Override + public boolean hasEmojiReactionFrecency() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_reaction_frecency = 13; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency getEmojiReactionFrecency() { + return emojiReactionFrecency_ == null ? FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency.getDefaultInstance() : emojiReactionFrecency_; + } + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_reaction_frecency = 13; + */ + private void setEmojiReactionFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency value) { + value.getClass(); + emojiReactionFrecency_ = value; + bitField0_ |= 0x00001000; + } + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_reaction_frecency = 13; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeEmojiReactionFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency value) { + value.getClass(); + if (emojiReactionFrecency_ != null && + emojiReactionFrecency_ != FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency.getDefaultInstance()) { + emojiReactionFrecency_ = + FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency.newBuilder(emojiReactionFrecency_).mergeFrom(value).buildPartial(); + } else { + emojiReactionFrecency_ = value; + } + bitField0_ |= 0x00001000; + } + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_reaction_frecency = 13; + */ + private void clearEmojiReactionFrecency() { emojiReactionFrecency_ = null; + bitField0_ = (bitField0_ & ~0x00001000); + } - /** - * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; - */ - @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency getPlayedSoundFrecency() { - return instance.getPlayedSoundFrecency(); - } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } - /** - * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; - */ - public Builder setPlayedSoundFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency value) { - copyOnWrite(); - instance.setPlayedSoundFrecency(value); - return this; - } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } - /** - * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; - */ - public Builder setPlayedSoundFrecency( - FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency.Builder builderForValue) { - copyOnWrite(); - instance.setPlayedSoundFrecency(builderForValue.build()); - return this; - } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } - /** - * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; - */ - public Builder mergePlayedSoundFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency value) { - copyOnWrite(); - instance.mergePlayedSoundFrecency(value); - return this; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(FrecencyUserSettingsOuterClass.FrecencyUserSettings prototype) { + return DEFAULT_INSTANCE.createBuilder(prototype); + } - /** - * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; - */ - public Builder clearPlayedSoundFrecency() { - copyOnWrite(); - instance.clearPlayedSoundFrecency(); - return this; - } + /** + * Protobuf type {@code FrecencyUserSettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + FrecencyUserSettingsOuterClass.FrecencyUserSettings, Builder> implements + // @@protoc_insertion_point(builder_implements:FrecencyUserSettings) + FrecencyUserSettingsOuterClass.FrecencyUserSettingsOrBuilder { + // Construct using FrecencyUserSettingsOuterClass.FrecencyUserSettings.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional .FrecencyUserSettings.Versions versions = 1; + */ + @java.lang.Override + public boolean hasVersions() { + return instance.hasVersions(); + } + /** + * optional .FrecencyUserSettings.Versions versions = 1; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions getVersions() { + return instance.getVersions(); + } + /** + * optional .FrecencyUserSettings.Versions versions = 1; + */ + public Builder setVersions(FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions value) { + copyOnWrite(); + instance.setVersions(value); + return this; + } + /** + * optional .FrecencyUserSettings.Versions versions = 1; + */ + public Builder setVersions( + FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions.Builder builderForValue) { + copyOnWrite(); + instance.setVersions(builderForValue.build()); + return this; + } + /** + * optional .FrecencyUserSettings.Versions versions = 1; + */ + public Builder mergeVersions(FrecencyUserSettingsOuterClass.FrecencyUserSettings.Versions value) { + copyOnWrite(); + instance.mergeVersions(value); + return this; + } + /** + * optional .FrecencyUserSettings.Versions versions = 1; + */ + public Builder clearVersions() { copyOnWrite(); + instance.clearVersions(); + return this; + } + + /** + * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; + */ + @java.lang.Override + public boolean hasFavoriteGifs() { + return instance.hasFavoriteGifs(); + } + /** + * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs getFavoriteGifs() { + return instance.getFavoriteGifs(); + } + /** + * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; + */ + public Builder setFavoriteGifs(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs value) { + copyOnWrite(); + instance.setFavoriteGifs(value); + return this; + } + /** + * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; + */ + public Builder setFavoriteGifs( + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs.Builder builderForValue) { + copyOnWrite(); + instance.setFavoriteGifs(builderForValue.build()); + return this; + } + /** + * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; + */ + public Builder mergeFavoriteGifs(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs value) { + copyOnWrite(); + instance.mergeFavoriteGifs(value); + return this; + } + /** + * optional .FrecencyUserSettings.FavoriteGIFs favorite_gifs = 2; + */ + public Builder clearFavoriteGifs() { copyOnWrite(); + instance.clearFavoriteGifs(); + return this; + } + + /** + * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; + */ + @java.lang.Override + public boolean hasFavoriteStickers() { + return instance.hasFavoriteStickers(); + } + /** + * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers getFavoriteStickers() { + return instance.getFavoriteStickers(); + } + /** + * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; + */ + public Builder setFavoriteStickers(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers value) { + copyOnWrite(); + instance.setFavoriteStickers(value); + return this; + } + /** + * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; + */ + public Builder setFavoriteStickers( + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers.Builder builderForValue) { + copyOnWrite(); + instance.setFavoriteStickers(builderForValue.build()); + return this; + } + /** + * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; + */ + public Builder mergeFavoriteStickers(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteStickers value) { + copyOnWrite(); + instance.mergeFavoriteStickers(value); + return this; + } + /** + * optional .FrecencyUserSettings.FavoriteStickers favorite_stickers = 3; + */ + public Builder clearFavoriteStickers() { copyOnWrite(); + instance.clearFavoriteStickers(); + return this; + } + + /** + * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; + */ + @java.lang.Override + public boolean hasStickerFrecency() { + return instance.hasStickerFrecency(); + } + /** + * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency getStickerFrecency() { + return instance.getStickerFrecency(); + } + /** + * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; + */ + public Builder setStickerFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency value) { + copyOnWrite(); + instance.setStickerFrecency(value); + return this; + } + /** + * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; + */ + public Builder setStickerFrecency( + FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency.Builder builderForValue) { + copyOnWrite(); + instance.setStickerFrecency(builderForValue.build()); + return this; + } + /** + * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; + */ + public Builder mergeStickerFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.StickerFrecency value) { + copyOnWrite(); + instance.mergeStickerFrecency(value); + return this; + } + /** + * optional .FrecencyUserSettings.StickerFrecency sticker_frecency = 4; + */ + public Builder clearStickerFrecency() { copyOnWrite(); + instance.clearStickerFrecency(); + return this; + } + + /** + * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; + */ + @java.lang.Override + public boolean hasFavoriteEmojis() { + return instance.hasFavoriteEmojis(); + } + /** + * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis getFavoriteEmojis() { + return instance.getFavoriteEmojis(); + } + /** + * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; + */ + public Builder setFavoriteEmojis(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis value) { + copyOnWrite(); + instance.setFavoriteEmojis(value); + return this; + } + /** + * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; + */ + public Builder setFavoriteEmojis( + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis.Builder builderForValue) { + copyOnWrite(); + instance.setFavoriteEmojis(builderForValue.build()); + return this; + } + /** + * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; + */ + public Builder mergeFavoriteEmojis(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteEmojis value) { + copyOnWrite(); + instance.mergeFavoriteEmojis(value); + return this; + } + /** + * optional .FrecencyUserSettings.FavoriteEmojis favorite_emojis = 5; + */ + public Builder clearFavoriteEmojis() { copyOnWrite(); + instance.clearFavoriteEmojis(); + return this; + } + + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; + */ + @java.lang.Override + public boolean hasEmojiFrecency() { + return instance.hasEmojiFrecency(); + } + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency getEmojiFrecency() { + return instance.getEmojiFrecency(); + } + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; + */ + public Builder setEmojiFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency value) { + copyOnWrite(); + instance.setEmojiFrecency(value); + return this; + } + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; + */ + public Builder setEmojiFrecency( + FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency.Builder builderForValue) { + copyOnWrite(); + instance.setEmojiFrecency(builderForValue.build()); + return this; + } + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; + */ + public Builder mergeEmojiFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency value) { + copyOnWrite(); + instance.mergeEmojiFrecency(value); + return this; + } + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_frecency = 6; + */ + public Builder clearEmojiFrecency() { copyOnWrite(); + instance.clearEmojiFrecency(); + return this; + } + + /** + * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; + */ + @java.lang.Override + public boolean hasApplicationCommandFrecency() { + return instance.hasApplicationCommandFrecency(); + } + /** + * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency getApplicationCommandFrecency() { + return instance.getApplicationCommandFrecency(); + } + /** + * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; + */ + public Builder setApplicationCommandFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency value) { + copyOnWrite(); + instance.setApplicationCommandFrecency(value); + return this; + } + /** + * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; + */ + public Builder setApplicationCommandFrecency( + FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency.Builder builderForValue) { + copyOnWrite(); + instance.setApplicationCommandFrecency(builderForValue.build()); + return this; + } + /** + * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; + */ + public Builder mergeApplicationCommandFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationCommandFrecency value) { + copyOnWrite(); + instance.mergeApplicationCommandFrecency(value); + return this; + } + /** + * optional .FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7; + */ + public Builder clearApplicationCommandFrecency() { copyOnWrite(); + instance.clearApplicationCommandFrecency(); + return this; + } + + /** + * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; + */ + @java.lang.Override + public boolean hasFavoriteSoundboardSounds() { + return instance.hasFavoriteSoundboardSounds(); + } + /** + * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds getFavoriteSoundboardSounds() { + return instance.getFavoriteSoundboardSounds(); + } + /** + * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; + */ + public Builder setFavoriteSoundboardSounds(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds value) { + copyOnWrite(); + instance.setFavoriteSoundboardSounds(value); + return this; + } + /** + * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; + */ + public Builder setFavoriteSoundboardSounds( + FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds.Builder builderForValue) { + copyOnWrite(); + instance.setFavoriteSoundboardSounds(builderForValue.build()); + return this; + } + /** + * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; + */ + public Builder mergeFavoriteSoundboardSounds(FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteSoundboardSounds value) { + copyOnWrite(); + instance.mergeFavoriteSoundboardSounds(value); + return this; + } + /** + * optional .FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8; + */ + public Builder clearFavoriteSoundboardSounds() { copyOnWrite(); + instance.clearFavoriteSoundboardSounds(); + return this; + } + + /** + * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; + */ + @java.lang.Override + public boolean hasApplicationFrecency() { + return instance.hasApplicationFrecency(); + } + /** + * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency getApplicationFrecency() { + return instance.getApplicationFrecency(); + } + /** + * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; + */ + public Builder setApplicationFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency value) { + copyOnWrite(); + instance.setApplicationFrecency(value); + return this; + } + /** + * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; + */ + public Builder setApplicationFrecency( + FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency.Builder builderForValue) { + copyOnWrite(); + instance.setApplicationFrecency(builderForValue.build()); + return this; + } + /** + * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; + */ + public Builder mergeApplicationFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.ApplicationFrecency value) { + copyOnWrite(); + instance.mergeApplicationFrecency(value); + return this; + } + /** + * optional .FrecencyUserSettings.ApplicationFrecency application_frecency = 9; + */ + public Builder clearApplicationFrecency() { copyOnWrite(); + instance.clearApplicationFrecency(); + return this; + } + + /** + * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; + */ + @java.lang.Override + public boolean hasHeardSoundFrecency() { + return instance.hasHeardSoundFrecency(); + } + /** + * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency getHeardSoundFrecency() { + return instance.getHeardSoundFrecency(); + } + /** + * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; + */ + public Builder setHeardSoundFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency value) { + copyOnWrite(); + instance.setHeardSoundFrecency(value); + return this; + } + /** + * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; + */ + public Builder setHeardSoundFrecency( + FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency.Builder builderForValue) { + copyOnWrite(); + instance.setHeardSoundFrecency(builderForValue.build()); + return this; + } + /** + * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; + */ + public Builder mergeHeardSoundFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.HeardSoundFrecency value) { + copyOnWrite(); + instance.mergeHeardSoundFrecency(value); + return this; + } + /** + * optional .FrecencyUserSettings.HeardSoundFrecency heard_sound_frecency = 10; + */ + public Builder clearHeardSoundFrecency() { copyOnWrite(); + instance.clearHeardSoundFrecency(); + return this; + } + + /** + * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; + */ + @java.lang.Override + public boolean hasPlayedSoundFrecency() { + return instance.hasPlayedSoundFrecency(); + } + /** + * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency getPlayedSoundFrecency() { + return instance.getPlayedSoundFrecency(); + } + /** + * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; + */ + public Builder setPlayedSoundFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency value) { + copyOnWrite(); + instance.setPlayedSoundFrecency(value); + return this; + } + /** + * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; + */ + public Builder setPlayedSoundFrecency( + FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency.Builder builderForValue) { + copyOnWrite(); + instance.setPlayedSoundFrecency(builderForValue.build()); + return this; + } + /** + * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; + */ + public Builder mergePlayedSoundFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.PlayedSoundFrecency value) { + copyOnWrite(); + instance.mergePlayedSoundFrecency(value); + return this; + } + /** + * optional .FrecencyUserSettings.PlayedSoundFrecency played_sound_frecency = 11; + */ + public Builder clearPlayedSoundFrecency() { copyOnWrite(); + instance.clearPlayedSoundFrecency(); + return this; + } + + /** + * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; + */ + @java.lang.Override + public boolean hasGuildAndChannelFrecency() { + return instance.hasGuildAndChannelFrecency(); + } + /** + * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency getGuildAndChannelFrecency() { + return instance.getGuildAndChannelFrecency(); + } + /** + * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; + */ + public Builder setGuildAndChannelFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency value) { + copyOnWrite(); + instance.setGuildAndChannelFrecency(value); + return this; + } + /** + * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; + */ + public Builder setGuildAndChannelFrecency( + FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency.Builder builderForValue) { + copyOnWrite(); + instance.setGuildAndChannelFrecency(builderForValue.build()); + return this; + } + /** + * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; + */ + public Builder mergeGuildAndChannelFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency value) { + copyOnWrite(); + instance.mergeGuildAndChannelFrecency(value); + return this; + } + /** + * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; + */ + public Builder clearGuildAndChannelFrecency() { copyOnWrite(); + instance.clearGuildAndChannelFrecency(); + return this; + } + + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_reaction_frecency = 13; + */ + @java.lang.Override + public boolean hasEmojiReactionFrecency() { + return instance.hasEmojiReactionFrecency(); + } + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_reaction_frecency = 13; + */ + @java.lang.Override + public FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency getEmojiReactionFrecency() { + return instance.getEmojiReactionFrecency(); + } + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_reaction_frecency = 13; + */ + public Builder setEmojiReactionFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency value) { + copyOnWrite(); + instance.setEmojiReactionFrecency(value); + return this; + } + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_reaction_frecency = 13; + */ + public Builder setEmojiReactionFrecency( + FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency.Builder builderForValue) { + copyOnWrite(); + instance.setEmojiReactionFrecency(builderForValue.build()); + return this; + } + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_reaction_frecency = 13; + */ + public Builder mergeEmojiReactionFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.EmojiFrecency value) { + copyOnWrite(); + instance.mergeEmojiReactionFrecency(value); + return this; + } + /** + * optional .FrecencyUserSettings.EmojiFrecency emoji_reaction_frecency = 13; + */ + public Builder clearEmojiReactionFrecency() { copyOnWrite(); + instance.clearEmojiReactionFrecency(); + return this; + } + + // @@protoc_insertion_point(builder_scope:FrecencyUserSettings) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new FrecencyUserSettingsOuterClass.FrecencyUserSettings(); + } + case NEW_BUILDER: { + return new Builder(); + } + case BUILD_MESSAGE_INFO: { + java.lang.Object[] objects = new java.lang.Object[] { + "bitField0_", + "versions_", + "favoriteGifs_", + "favoriteStickers_", + "stickerFrecency_", + "favoriteEmojis_", + "emojiFrecency_", + "applicationCommandFrecency_", + "favoriteSoundboardSounds_", + "applicationFrecency_", + "heardSoundFrecency_", + "playedSoundFrecency_", + "guildAndChannelFrecency_", + "emojiReactionFrecency_", + }; + java.lang.String info = + "\u0000\r\u0000\u0001\u0001\r\r\u0000\u0000\u0000\u0001\u1009\u0000\u0002\u1009\u0001" + + "\u0003\u1009\u0002\u0004\u1009\u0003\u0005\u1009\u0004\u0006\u1009\u0005\u0007\u1009" + + "\u0006\b\u1009\u0007\t\u1009\b\n\u1009\t\u000b\u1009\n\f\u1009\u000b\r\u1009\f"; + return newMessageInfo(DEFAULT_INSTANCE, info, objects); + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (FrecencyUserSettingsOuterClass.FrecencyUserSettings.class) { + parser = PARSER; + if (parser == null) { + parser = + new DefaultInstanceBasedParser( + DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } - /** - * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; - */ - @java.lang.Override - public boolean hasGuildAndChannelFrecency() { - return instance.hasGuildAndChannelFrecency(); - } - /** - * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; - */ - @java.lang.Override - public FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency getGuildAndChannelFrecency() { - return instance.getGuildAndChannelFrecency(); - } + // @@protoc_insertion_point(class_scope:FrecencyUserSettings) + private static final FrecencyUserSettingsOuterClass.FrecencyUserSettings DEFAULT_INSTANCE; + static { + FrecencyUserSettings defaultInstance = new FrecencyUserSettings(); + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = defaultInstance; + com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( + FrecencyUserSettings.class, defaultInstance); + } - /** - * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; - */ - public Builder setGuildAndChannelFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency value) { - copyOnWrite(); - instance.setGuildAndChannelFrecency(value); - return this; - } + public static FrecencyUserSettingsOuterClass.FrecencyUserSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; - */ - public Builder setGuildAndChannelFrecency( - FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency.Builder builderForValue) { - copyOnWrite(); - instance.setGuildAndChannelFrecency(builderForValue.build()); - return this; - } + private static volatile com.google.protobuf.Parser PARSER; - /** - * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; - */ - public Builder mergeGuildAndChannelFrecency(FrecencyUserSettingsOuterClass.FrecencyUserSettings.GuildAndChannelFrecency value) { - copyOnWrite(); - instance.mergeGuildAndChannelFrecency(value); - return this; - } + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } - /** - * optional .FrecencyUserSettings.GuildAndChannelFrecency guild_and_channel_frecency = 12; - */ - public Builder clearGuildAndChannelFrecency() { - copyOnWrite(); - instance.clearGuildAndChannelFrecency(); - return this; - } - // @@protoc_insertion_point(builder_scope:FrecencyUserSettings) - } - } + static { + } - // @@protoc_insertion_point(outer_class_scope) + // @@protoc_insertion_point(outer_class_scope) } diff --git a/plugin/Frecents/src/main/kotlin/Frecents.kt b/plugin/Frecents/src/main/kotlin/Frecents.kt deleted file mode 100644 index 799be6f3..00000000 --- a/plugin/Frecents/src/main/kotlin/Frecents.kt +++ /dev/null @@ -1,418 +0,0 @@ -@file:Suppress("MISSING_DEPENDENCY_SUPERCLASS") - -import FrecencyUserSettingsOuterClass.FrecencyUserSettings -import FrecencyUserSettingsOuterClass.FrecencyUserSettings.FavoriteGIFs -import android.content.Context -import android.util.Base64 -import android.view.Gravity -import android.view.View -import android.view.ViewGroup -import android.view.ViewGroup.LayoutParams.WRAP_CONTENT -import android.widget.FrameLayout -import android.widget.ImageButton -import android.widget.ImageView -import android.widget.TextView -import androidx.core.content.ContextCompat -import com.aliucord.Http -import com.aliucord.Utils -import com.aliucord.annotations.AliucordPlugin -import com.aliucord.api.GatewayAPI -import com.aliucord.entities.Plugin -import com.aliucord.patcher.after -import com.aliucord.patcher.before -import com.aliucord.patcher.component1 -import com.aliucord.patcher.component2 -import com.aliucord.patcher.component3 -import com.aliucord.patcher.instead -import com.aliucord.utils.DimenUtils.dp -import com.aliucord.utils.RxUtils.map -import com.aliucord.utils.lazyField -import com.aliucord.wrappers.messages.AttachmentWrapper.Companion.height -import com.aliucord.wrappers.messages.AttachmentWrapper.Companion.type -import com.aliucord.wrappers.messages.AttachmentWrapper.Companion.url -import com.aliucord.wrappers.messages.AttachmentWrapper.Companion.width -import com.discord.api.message.attachment.MessageAttachmentType -import com.discord.api.message.embed.EmbedType -import com.discord.databinding.ExpressionPickerHeaderItemBinding -import com.discord.models.gifpicker.dto.ModelGif -import com.discord.stores.Dispatcher -import com.discord.stores.StoreGifPicker -import com.discord.stores.StoreMediaFavorites -import com.discord.stores.StoreMediaFavorites.Favorite -import com.discord.stores.StoreStream -import com.discord.stores.updates.ObservationDeck -import com.discord.utilities.embed.EmbedResourceUtils -import com.discord.utilities.mg_recycler.MGRecyclerDataPayload -import com.discord.utilities.persister.Persister -import com.discord.widgets.chat.input.gifpicker.GifAdapterItem -import com.discord.widgets.chat.input.gifpicker.GifCategoryItem -import com.discord.widgets.chat.input.gifpicker.GifCategoryViewHolder -import com.discord.widgets.chat.input.gifpicker.GifCategoryViewModel -import com.discord.widgets.chat.input.gifpicker.GifPickerViewModel -import com.discord.widgets.chat.input.gifpicker.GifViewHolder -import com.discord.widgets.chat.input.gifpicker.WidgetGifCategory -import com.discord.widgets.chat.input.gifpicker.WidgetGifPicker -import com.discord.widgets.chat.input.sticker.HeaderItem -import com.discord.widgets.chat.input.sticker.OwnedHeaderViewHolder -import com.discord.widgets.chat.input.sticker.StickerItem -import com.discord.widgets.chat.input.sticker.StickerPickerViewModel -import com.discord.widgets.chat.input.sticker.StickerViewHolder -import com.discord.widgets.chat.list.adapter.WidgetChatListAdapter -import com.discord.widgets.chat.list.adapter.WidgetChatListAdapterItemAttachment -import com.discord.widgets.emoji.EmojiSheetViewModel -import com.discord.widgets.stickers.WidgetStickerSheet -import com.lytefast.flexinput.R -import frecents.Id -import frecents.binding -import frecents.gif.GifCategoryItemFavorites -import frecents.setPreviewImage -import frecents.starButton -import frecents.sticker.FavoritesItem -import com.discord.widgets.emoji.EmojiSheetViewModel.ViewState as EmojiSheetViewModelViewState -import j0.l.e.k as ScalarSynchronousObservable - -private data class Response(val settings: String) - -private data class GatewayResponse(val partial: Boolean, val settings: Settings) { - data class Settings(val proto: String, val type: Int) -} - -@AliucordPlugin -class Frecents : Plugin() { - private val bindingField by lazyField("binding") - private val OwnedHeaderViewHolder.binding - get() = bindingField[this] as ExpressionPickerHeaderItemBinding - - val frecencyUserSettings: FrecencyUserSettings by lazy { - Utils.threadPool - .submit { - val res = get() - - FrecencyUserSettings.parseFrom( - // data = - Base64.decode(res.settings, Base64.DEFAULT) - ) - }.get() - } - - private fun get() = Http.Request - .newDiscordRNRequest("/users/@me/settings-proto/2", "GET") - .execute() - .json(Response::class.java) - - fun ModelGif.setFavorite(favorite: Boolean): Boolean { - GatewayAPI.onEvent("USER_SETTINGS_PROTO_UPDATE") { - val a = FrecencyUserSettings.parseFrom( - Base64.decode(it.settings.proto, Base64.DEFAULT) - ) - } - - val favoriteGif = FrecencyUserSettings.FavoriteGIF - .newBuilder() - .apply { - width = this@setFavorite.width - height = this@setFavorite.height - src = gifImageUrl - }.build() - - frecencyUserSettings - .toBuilder() - .mergeFavoriteGifs( - FavoriteGIFs - .newBuilder() - .putGifs(gifImageUrl, favoriteGif) - .build() - ).build() - - return false - } - - @Suppress("SetTextI18n") - override fun start(ctx: Context) { - val starDrawable = - ContextCompat.getDrawable(ctx, R.e.ic_emoji_picker_category_favorites_star)!! - - patcher.before( - String::class.java, - List::class.java, - List::class.java, - Boolean::class.java, - Boolean::class.java - ) { (param, _: Any, a: List) -> - param.args[1] = listOf(HeaderItem(FavoritesItem)) + a - } - - patcher.before( - "handleViewState", - GifPickerViewModel.ViewState::class.java - ) { (param, viewState: GifPickerViewModel.ViewState) -> - param.args[0] = GifPickerViewModel.ViewState( - listOf(GifCategoryItemFavorites(null)) + viewState.gifCategoryItems - ) - } - - patcher.after( - "configure", - GifAdapterItem.GifItem::class.java, - Int::class.java, - Function1::class.java - ) { (_, item: GifAdapterItem.GifItem) -> - itemView.setOnLongClickListener { - // toggleFavorite(item.model) - - true - } - } - - patcher.after( - "configure", - GifCategoryItem::class.java, - Function1::class.java - ) { (_, gifCategoryItem: GifCategoryItem?) -> - if (gifCategoryItem !is GifCategoryItemFavorites) return@after - - setPreviewImage("") - itemView - .findViewById(Id.gif_category_item_icon) - .setImageDrawable(starDrawable) - itemView.findViewById(Id.gif_category_item_title).text = "Favorites" - - gifCategoryItem.previewUrl?.let(::setPreviewImage) - } - - patcher.instead("setUpTitle") { - val binding = WidgetGifCategory.`access$getBinding$p`(this) - val gifCategoryItem = WidgetGifCategory.`access$getGifCategory`(this) - - binding.e.text = when (gifCategoryItem) { - is GifCategoryItem.Standard -> gifCategoryItem.gifCategory.categoryName - - is GifCategoryItem.Trending -> { - resources.getString(Id.gif_picker_result_type_trending_gifs) - } - - is GifCategoryItemFavorites -> "Favorites" - - else -> throw NoWhenBranchMatchedException() - } - - null - } - - patcher.after(WidgetChatListAdapter::class.java) { - binding.starButton = ImageButton(binding.root.context).apply { - visibility = View.GONE - layoutParams = FrameLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT).apply { - gravity = Gravity.END - setMargins(0, 8.dp, 8.dp, 0) - } - - setImageDrawable(starDrawable) - } - - (binding.root as ViewGroup).addView(binding.starButton) - } - - patcher.instead( - "observeStoreState", - GifCategoryItem::class.java, - StoreGifPicker::class.java - ) { (_, item: GifCategoryItem, store: StoreGifPicker) -> - when (item) { - is GifCategoryItem.Standard -> { - store.observeGifsForSearchQuery(item.gifCategory.categoryName) - } - - is GifCategoryItem.Trending -> store.observeTrendingCategoryGifs() - - is GifCategoryItemFavorites -> { - ScalarSynchronousObservable( - frecencyUserSettings.favoriteGifs - .gifsMap - .asSequence() - .sortedByDescending { it.value.order } - .map { (key, v) -> - ModelGif( - v.src, - key, - v.width, - v.height - ) - }.toList() - ) - } - - else -> throw NoWhenBranchMatchedException() - }.map(GifCategoryViewModel::StoreState) - } - - patcher.after( - "configureSticker", - MGRecyclerDataPayload::class.java - ) { (param, payload: MGRecyclerDataPayload) -> - - StickerViewHolder.`access$getBinding$p`(this).b.setOnLongClickListener { - // toggleFavorite(item.model) - val stickerItem = payload as StickerItem - - val favorite = - - frecencyUserSettings.favoriteStickers - .toBuilder() - .addStickerIds(stickerItem.sticker.id) - .buildPartial() - true - } - } - // patcher.after( - // "updateUIWithEmbed", - // MessageEmbed::class.java, - // Int::class.javaObjectType, - // Int::class.javaObjectType, - // Boolean::class.javaPrimitiveType!! - // ) { (_, messageEmbed: MessageEmbed, width: Int, height: Int) -> - // val root = binding.root as ViewGroup - // val find = root.findViewById(starButtonId) - // - // if (EmbedResourceUtils.INSTANCE.isAnimated(messageEmbed)) { - // val gifUrl = messageEmbed.rawVideo?.url - // ?.replace("AAAPo", "AAAAC") ?: messageEmbed.url - // val model = ModelGif(gifUrl, messageEmbed.url, width, height) - // - // if (find == null) root.addView(createStarButton(context, model)) - // } else { - // root.removeView(find) - // } - // } - // - // patcher.after( - // "updateUIWithAttachment", - // MessageAttachment::class.java, - // Int::class.javaObjectType, - // Int::class.javaObjectType, - // Boolean::class.javaPrimitiveType!! - // ) { (_, messageAttachment: MessageAttachment, width: Int?, height: Int?) -> - // if (width == null || height == null) return@after - // - // val root = binding.root as ViewGroup - // - // val embedType = when (messageAttachment.type.ordinal) { - // 0 -> EmbedType.VIDEO - // 1 -> EmbedType.IMAGE - // 2 -> EmbedType.FILE - // else -> throw NoWhenBranchMatchedException() - // } - // - // val url = messageAttachment.url - // val find = root.findViewById(starButtonId) - // - // if (EmbedResourceUtils.INSTANCE.isAnimated(embedType, url)) { - // val model = ModelGif(url, url, width, height) - // - // if (find == null) root.addView(createStarButton(context, model)) - // } else { - // root.removeView(find) - // } - // } - - patcher.after( - "onConfigure", - Int::class.java, - MGRecyclerDataPayload::class.java - ) { (_, _: Int, data: MGRecyclerDataPayload) -> - if (data !is HeaderItem) return@after - - if (data.headerType == FavoritesItem) binding.b.text = "Favorites" - } - - patcher.after( - "configureUI", - WidgetChatListAdapterItemAttachment.Model::class.java - ) { (_, model: WidgetChatListAdapterItemAttachment.Model) -> - val attachment = model.attachmentEntry.attachment - - if (attachment.type == MessageAttachmentType.FILE) return@after - - val embedType = when (attachment.type.ordinal) { - 0 -> EmbedType.VIDEO - 1 -> EmbedType.IMAGE - 2 -> EmbedType.FILE - else -> throw NoWhenBranchMatchedException() - } - - val url = attachment.url - - if (EmbedResourceUtils.INSTANCE.isAnimated(embedType, url)) { - binding.starButton.visibility = View.VISIBLE - } else { - binding.starButton.visibility = View.GONE - return@after - } - - val visible = - WidgetChatListAdapterItemAttachment.Companion.`access$isInlinedAttachment$p`( - WidgetChatListAdapterItemAttachment.Companion, - attachment - ) || - StoreStream.getUserSettings().isAttachmentMediaInline - - if (!visible) return@after - - val modelGif = ModelGif(url, url, attachment.width!!, attachment.height!!) - - binding.starButton.apply { - // if (model in favoriteGifs) drawable.setTint(context.getColor(R.c.status_yellow)) - - // setOnClickListener { - // imageTintList = when { - // toggleFavorite(modelGif) -> null - // else -> ColorStateList.valueOf(context.getColor(R.c.status_yellow)) - // } - // } - } - } - - patcher.after( - "setFavorite", - Boolean::class.java - ) { (param, favorite: Boolean) -> - val data = when (val state = viewState) { - is EmojiSheetViewModelViewState.EmojiCustom -> state.emojiCustom.id.toString() - is EmojiSheetViewModelViewState.EmojiUnicode -> state.emojiUnicode.firstName - else -> return@after - } - - val builder = frecencyUserSettings.favoriteEmojis.toBuilder() - if (favorite) { - builder.addEmojis(data) - } else { - builder.emojisList.remove(data) - } - builder.build() - } - - // Patch the store to fetch favorite emojis - patcher.after( - ObservationDeck::class.java, - Dispatcher::class.java, - Persister::class.java - ) { - StoreMediaFavorites.`access$getFavorites$p`(this).apply { - clear() - add(Favorite.FavUnicodeEmoji("👍")) - markChanged() - } - } - - patcher.after("onViewCreated") { - - } - } - - override fun stop(context: Context) = patcher.unpatchAll() -} - -@Suppress("NOTHING_TO_INLINE") -private inline fun FrecencyUserSettings.FavoriteGIF.toModelGif(): ModelGif { - return ModelGif(src, src, width, height) -} diff --git a/plugin/Frecents/src/main/kotlin/frecents/Extensions.kt b/plugin/Frecents/src/main/kotlin/frecents/Extensions.kt deleted file mode 100644 index f0cda8ea..00000000 --- a/plugin/Frecents/src/main/kotlin/frecents/Extensions.kt +++ /dev/null @@ -1,48 +0,0 @@ -@file:Suppress("MISSING_DEPENDENCY_SUPERCLASS") - -package frecents - -import android.widget.ImageButton -import com.discord.databinding.WidgetChatListAdapterItemAttachmentBinding -import com.discord.databinding.WidgetStickerSheetBinding -import com.discord.widgets.chat.input.gifpicker.GifCategoryViewHolder -import com.discord.widgets.chat.list.InlineMediaView -import com.discord.widgets.chat.list.adapter.WidgetChatListAdapterItemAttachment -import com.discord.widgets.stickers.WidgetStickerSheet -import kotlin.properties.Delegates -import kotlin.properties.ReadWriteProperty -import kotlin.reflect.KProperty - -private val setPreviewImageMethod = GifCategoryViewHolder::class.java - .getDeclaredMethod("setPreviewImage", String::class.java) - .apply { isAccessible = true } - -fun GifCategoryViewHolder.setPreviewImage(url: String) { - setPreviewImageMethod(this, url) -} - -val InlineMediaView.binding - get() = InlineMediaView.`access$getBinding$p`(this) - -val WidgetChatListAdapterItemAttachment.binding: WidgetChatListAdapterItemAttachmentBinding - get() = WidgetChatListAdapterItemAttachment.`access$getBinding$p`(this) - -var WidgetChatListAdapterItemAttachmentBinding.starButton: ImageButton by Delegates.notNull() -val WidgetStickerSheet.binding: WidgetStickerSheetBinding by property("binding") - -private inline fun property(name: String): ReadWriteProperty { - return object : ReadWriteProperty { - private val field = T::class.java - .getDeclaredField(name) - .apply { isAccessible = true } - - override fun getValue(thisRef: T, property: KProperty<*>): V { - @Suppress("UNCHECKED_CAST") - return field[thisRef] as V - } - - override fun setValue(thisRef: T, property: KProperty<*>, value: V) { - field[thisRef] = value - } - } -} \ No newline at end of file diff --git a/plugin/Frecents/src/main/kotlin/frecents/Resources.kt b/plugin/Frecents/src/main/kotlin/frecents/Resources.kt deleted file mode 100644 index 5b1712ee..00000000 --- a/plugin/Frecents/src/main/kotlin/frecents/Resources.kt +++ /dev/null @@ -1,12 +0,0 @@ -package frecents - -import com.aliucord.Utils - -object Id { - val gif_category_item_icon by lazy { Utils.getResId("gif_category_item_icon", "id") } - val gif_category_item_title by lazy { Utils.getResId("gif_category_item_title", "id") } - val gif_category_title by lazy { Utils.getResId("gif_category_title", "id") } - val gif_picker_result_type_trending_gifs by lazy { - Utils.getResId("gif_picker_result_type_trending_gifs", "string") - } -} \ No newline at end of file diff --git a/plugin/Frecents/src/main/kotlin/frecents/gif/GifCategoryItemFavorites.kt b/plugin/Frecents/src/main/kotlin/frecents/gif/GifCategoryItemFavorites.kt deleted file mode 100644 index 9dde2b46..00000000 --- a/plugin/Frecents/src/main/kotlin/frecents/gif/GifCategoryItemFavorites.kt +++ /dev/null @@ -1,5 +0,0 @@ -package frecents.gif - -import com.discord.widgets.chat.input.gifpicker.GifCategoryItem - -class GifCategoryItemFavorites(var previewUrl: String?) : GifCategoryItem(null) \ No newline at end of file diff --git a/plugin/Frecents/src/main/kotlin/frecents/sticker/FavoritesItem.kt b/plugin/Frecents/src/main/kotlin/frecents/sticker/FavoritesItem.kt deleted file mode 100644 index fb9ee60c..00000000 --- a/plugin/Frecents/src/main/kotlin/frecents/sticker/FavoritesItem.kt +++ /dev/null @@ -1,7 +0,0 @@ -package frecents.sticker - -import com.discord.widgets.chat.input.sticker.HeaderType - -object FavoritesItem : HeaderType(null) { - override fun getId() = "Favorites" -} \ No newline at end of file diff --git a/plugin/Frecents/src/main/proto/FrecencyUserSettings.proto b/plugin/Frecents/src/main/proto/FrecencyUserSettings.proto index b5cc3346..60b3bf64 100644 --- a/plugin/Frecents/src/main/proto/FrecencyUserSettings.proto +++ b/plugin/Frecents/src/main/proto/FrecencyUserSettings.proto @@ -85,4 +85,5 @@ message FrecencyUserSettings { optional HeardSoundFrecency heard_sound_frecency = 10; optional PlayedSoundFrecency played_sound_frecency = 11; optional GuildAndChannelFrecency guild_and_channel_frecency = 12; + optional EmojiFrecency emoji_reaction_frecency = 13; } \ No newline at end of file