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 extends java.lang.Long> 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 extends java.lang.Long> 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 extends java.lang.Long> 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 extends java.lang.Long> 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 extends java.lang.Long> 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 extends java.lang.Long> 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 extends java.lang.Long> 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 extends java.lang.Long> 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 extends java.lang.Long> 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 extends java.lang.Long> 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());
- }
-
- /**
- *